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)
67 if (clock_gettime(CLOCK_MONOTONIC, &start) == -1) {
72 inline uint32_t TimeUtil::TimeElapse(const timespec &start)
79 return (current.tv_sec > start.tv_sec) ? (current.tv_sec - start.tv_sec) : 0;
82 inline void TimeUtil::TimeElapse(const timespec &start, const timespec &end)
84 long secs = end.tv_sec - start.tv_sec;
93 inline long TimeUtil::TimeElapseUs(const timespec &start, const timespec &end)
95 long usecs = MS_PER_US * S_PER_MS * (end.tv_sec - start.tv_sec) + (end.tv_nsec - start.tv_nsec) / US_PER_NS;