Lines Matching refs:start
58 static void GetTime(timespec &start);
59 static uint32_t TimeElapse(const timespec &start);
60 static void TimeElapse(const timespec &start, const timespec &end);
61 static long TimeElapseUs(const timespec &start, const timespec &end);
65 inline void TimeUtil::GetTime(timespec &start) in GetTime() argument
67 if (clock_gettime(CLOCK_MONOTONIC, &start) == -1) { in GetTime()
72 inline uint32_t TimeUtil::TimeElapse(const timespec &start) in TimeElapse() argument
79 return (current.tv_sec > start.tv_sec) ? (current.tv_sec - start.tv_sec) : 0; in TimeElapse()
82 inline void TimeUtil::TimeElapse(const timespec &start, const timespec &end) in TimeElapse() argument
84 long secs = end.tv_sec - start.tv_sec; in TimeElapse()
93 inline long TimeUtil::TimeElapseUs(const timespec &start, const timespec &end) in TimeElapseUs() argument
95 …long usecs = MS_PER_US * S_PER_MS * (end.tv_sec - start.tv_sec) + (end.tv_nsec - start.tv_nsec) / … in TimeElapseUs()