#ifndef _TIMEUTIL_H_ #define _TIMEUTIL_H_ #include "usg_common.h" class TimeUtil { public: // 计算当前时间+ts的绝对时间 static struct timespec calc_abs_time(const struct timespec *ts); // 如果纳秒大于10e9,向秒进位 static struct timespec trim_time(const struct timespec *ts) ; }; #endif