Home
last modified time | relevance | path

Searched refs:tsNow (Results 1 – 1 of 1) sorted by relevance

/kernel/liteos_m/testsuites/unittest/posix/src/semaphore/
Dsemaphore_func_test.c79 struct timespec tsNow = { 0 }; in GetDelayedTime() local
80 clock_gettime(CLOCK_REALTIME, &tsNow); in GetDelayedTime()
81 LOG("Cur time tv_sec: %lld, tv_nsec: %ld", tsNow.tv_sec, tsNow.tv_nsec); in GetDelayedTime()
82 ts.tv_sec = tsNow.tv_sec + (tsNow.tv_nsec + setTimeNs) / nsecPerSec; in GetDelayedTime()
83 ts.tv_nsec = (tsNow.tv_nsec + setTimeNs) % nsecPerSec; in GetDelayedTime()
106 struct timespec tsNow = { 0 }; variable
120 clock_gettime(CLOCK_REALTIME, &tsNow);
121 LOG("tsNow %lld, %d", tsNow.tv_sec, tsNow.tv_nsec);
122 int timeDiff = GetTimeDiff(tsNow, ts); // calculate time different
138 struct timespec tsNow = { 0 }; variable
[all …]