fujuntang
2021-11-30 490948a0d52a3ad7b3f94525a982fc7012d06011
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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