How to get the current time in milliseconds from C in Linux?

前端 未结 7 876
不知归路
不知归路 2020-11-30 19:09

How do I get the current time on Linux in milliseconds?

相关标签:
7条回答
  • 2020-11-30 20:07

    Use gettimeofday() to get the time in seconds and microseconds. Combining and rounding to milliseconds is left as an exercise.

    0 讨论(0)
提交回复
热议问题