C++获取linux时间戳
#include暑期编程PK赛 得CSDN机械键盘等精美礼品!#include int64_t gettimeofday_us() { timeval now; gettimeofday(&now, NULL); return now.tv_sec * 1000000L + now.tv_usec; } int main(void) { int64_t start = gettimeofday_us(); }

C++获取linux时间戳
#include暑期编程PK赛 得CSDN机械键盘等精美礼品!#include int64_t gettimeofday_us() { timeval now; gettimeofday(&now, NULL); return now.tv_sec * 1000000L + now.tv_usec; } int main(void) { int64_t start = gettimeofday_us(); }