linux shell毫秒计时
来源:互联网 发布:淘宝杯子宝贝卖点范文 编辑:程序博客网 时间:2024/04/28 02:12
man date
…
%m month (01..12)
%M minute (00..59)
%n a newline
%N nanoseconds (000000000..999999999)
%p locale’s equivalent of either AM or PM; blank if not known
%P like %p, but lower case
%r locale’s 12-hour clock time (e.g., 11:11:04 PM)
%R 24-hour hour and minute; same as %H:%M
%s seconds since 1970-01-01 00:00:00 UTC
%S second (00..60)
…
%n就是纳秒数,%s是1970以来的秒数
1毫秒 等于 1000 * 1000 纳秒
START=`date +%s%N`;
sleep 3;
END=`date +%s%N`;
time=$((END-START))
time=`expr $time / 1000000`
echo $time
- linux shell毫秒计时
- 使用timeval获取Linux 毫秒级计时
- Linux下Shell的计时
- c#毫秒级计时
- shell计时
- shell计时
- shell 计时
- 【Linux】shell: 获取时间间隔到毫秒、微秒级别
- linux中shell如何实现毫秒级别的sleep
- 【Linux】shell: 获取时间间隔到毫秒、微秒级别
- Linux 计时
- SHELL获得毫秒数
- Shell获取毫秒时间
- shell,运行程序计时
- DELPHI高精度计时方法,取毫秒级时间精度
- 毫秒级和纳秒级计时的API--timeGetTime、GetTickCount、QueryPerformanceCounter
- Linux学习2之shell脚本计算代码段运行的时间(精确到毫秒)
- linux sleep毫秒
- TextView常用属性android:ellipsize
- 【物联网中间件平台-06】RFID刷卡拍照
- R.java常见问题解决方案
- 显示SD卡里的文件列表
- asp必须知道的常用快捷键
- linux shell毫秒计时
- 福昕foxit 中文乱码解决方法
- 1338_Up and Down Sequences
- 推荐一个vim 配置
- 题目:已知一个完全二叉树的结点数为770,问完全二叉树的叶子结点数为多少?
- 汇编——win32下计算result=m-n*x
- 浅析代理键替换管道
- 数据库乐观锁与悲观锁
- 1001