linux 获取当前时间 ms
uint64_t now_ms() {
timeval tv;
gettimeofday(&tv, NULL);
return (uint64_t )(tv.tv_sec) * 1000 + tv.tv_usec / 1000;
}最后更新于
uint64_t now_ms() {
timeval tv;
gettimeofday(&tv, NULL);
return (uint64_t )(tv.tv_sec) * 1000 + tv.tv_usec / 1000;
}最后更新于