Searched refs:oldTime (Results 1 – 1 of 1) sorted by relevance
31 int64_t timespecDelta(const timespec& newTime, const timespec& oldTime) { in timespecDelta() argument34 if (newTime.tv_nsec >= oldTime.tv_nsec) { in timespecDelta()35 deltaSec = newTime.tv_sec - oldTime.tv_sec; in timespecDelta()36 deltaNSec = newTime.tv_nsec - oldTime.tv_nsec; in timespecDelta()38 deltaSec = newTime.tv_sec - oldTime.tv_sec - 1; in timespecDelta()39 deltaNSec = kOneSecInNs + newTime.tv_nsec - oldTime.tv_nsec; in timespecDelta()