How to get the time at millisecond level on Linux with command line?
I know that gettimeofday()
is a nice API. But how to get the number of seconds with milliseconds since the epoch time?
You can get the time at nano-seconds level (although it is not guaranteed that the last digits are accurate) by:
date +%s.%N