linux毫秒值命令_如何通过命令行在Linux上获得毫秒级的时间?
linux毫秒值命令I know that gettimeofday() is a nice API. But how to get the number of seconds with milliseconds since the epoch time? 我知道gettimeofday()是一个不错的API。 但是,如何获得自纪元以来的毫秒数呢?You can get the time at..
·
linux毫秒值命令
I know that gettimeofday()
is a nice API. But how to get the number of seconds with milliseconds since the epoch time?
我知道gettimeofday()
是一个不错的API。 但是,如何获得自纪元以来的毫秒数呢?
You can get the time at nano-seconds level (although it is not guaranteed that the last digits are accurate) by:
您可以通过以下方式获得时间(以纳秒为单位)(尽管不能保证最后一位数字是准确的):
date +%s.%N
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-get-the-time-at-millisecond-level-on-linux-with-command-line/
linux毫秒值命令
更多推荐
已为社区贡献6条内容
所有评论(0)