【Linux】shell: 获取时间间隔到毫秒、微秒级别

对于shell,经过date命令能够获取到当前时间,还能够设定特殊格式,看help你能够看到下面两个好用的参数:shell %s seconds since '00:00:00 1970-01-01 UTC' (a GNU extension) %N nanoseconds (000000000..999999999) 这里%s表示当前时间的秒数,而%N表示当前时间的纳秒部分,即
相关文章
相关标签/搜索