faster equivalent of gettimeofday

前端 未结 5 701
死守一世寂寞
死守一世寂寞 2020-11-28 02:40

In trying to build a very latency sensitive application, that needs to send 100s of messages a seconds, each message having the time field, we wanted to consider optimizing

5条回答
  •  北海茫月
    2020-11-28 03:11

    Do you need the millisecond precision? If not you could simply use time() and deal with the unix timestamp.

提交回复
热议问题