#include <time.h> // 返回自系统开机以来的毫秒数(tick) unsigned long GetTickCount() { struct timespec ts; clock_gettime(CLOCK_MONOTONIC, &ts); return (ts.tv_sec * 1000 + ts.tv_nsec / 1000000); } ———————————————— 版权声明:本文为CSDN博主「庄山浪水」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/c_group/article/details/100937845
标签:tv,ts,获取,linux,原文,版权,tick From: https://www.cnblogs.com/tingtaishou/p/16823931.html