• Home
  • Raw
  • Download

Lines Matching refs:tv

357     struct timeval tv {};  in SetRealTime()  struct
358 tv.tv_sec = (time_t)(time / MILLI_TO_BASE); in SetRealTime()
359 tv.tv_usec = (suseconds_t)((time % MILLI_TO_BASE) * MILLI_TO_MICR); in SetRealTime()
360 int result = settimeofday(&tv, nullptr); in SetRealTime()
365 auto ret = SetRtcTime(tv.tv_sec); in SetRealTime()
602 struct timespec tv {}; in GetWallTimeMs() struct
603 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeMs()
604 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
612 struct timespec tv {}; in GetWallTimeNs() struct
613 if (GetTimeByClockid(CLOCK_REALTIME, tv)) { in GetWallTimeNs()
614 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetWallTimeNs()
622 struct timespec tv {}; in GetBootTimeMs() struct
623 if (GetTimeByClockid(CLOCK_BOOTTIME, tv)) { in GetBootTimeMs()
624 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
632 struct timespec tv {}; in GetBootTimeNs() struct
633 if (GetTimeByClockid(CLOCK_BOOTTIME, tv)) { in GetBootTimeNs()
634 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetBootTimeNs()
642 struct timespec tv {}; in GetMonotonicTimeMs() struct
643 if (GetTimeByClockid(CLOCK_MONOTONIC, tv)) { in GetMonotonicTimeMs()
644 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()
652 struct timespec tv {}; in GetMonotonicTimeNs() struct
653 if (GetTimeByClockid(CLOCK_MONOTONIC, tv)) { in GetMonotonicTimeNs()
654 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetMonotonicTimeNs()
662 struct timespec tv {}; in GetThreadTimeMs() struct
669 if (GetTimeByClockid(cid, tv)) { in GetThreadTimeMs()
670 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetThreadTimeMs()
678 struct timespec tv {}; in GetThreadTimeNs() struct
685 if (GetTimeByClockid(cid, tv)) { in GetThreadTimeNs()
686 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetThreadTimeNs()
692 bool TimeSystemAbility::GetTimeByClockid(clockid_t clockId, struct timespec &tv) in GetTimeByClockid() argument
694 if (clock_gettime(clockId, &tv) < 0) { in GetTimeByClockid()