Searched refs:SystemTime (Results 1 – 25 of 32) sorted by relevance
12
26 use std::time::{Duration, SystemTime};79 let since_epoch = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH)?; in get_report_filename()87 pub fn get_report_ts(filename: &str) -> Result<SystemTime> { in get_report_ts() argument92 Ok(SystemTime::UNIX_EPOCH + Duration::new(uuid_ts.0, uuid_ts.1)) in get_report_ts()
23 void SystemTime::init() { in init()27 Nanoseconds SystemTime::getUptime() { in getUptime()
43 mVoteCountStart = Milliseconds(SystemTime::getMonotonicTime()); in incrementDramVoteCount()82 duration = Milliseconds(SystemTime::getMonotonicTime()) - mVoteCountStart; in checkDramDuration()
30 return chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in chreGetTime()34 return chre::SystemTime::getEstimatedHostTimeOffset(); in chreGetEstimatedHostTimeOffset()
35 return SystemTime::getMonotonicTime().toRawNanoseconds(); in palSystemApiGetCurrentTime()
46 chre::SystemTime::getMonotonicTime().toRawNanoseconds(); in pw_TokenizerHandleEncodedMessageWithPayload()
112 uint64_t timeNs = SystemTime::getMonotonicTime().toRawNanoseconds(); in logVa()
36 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()40 int64_t SystemTime::getEstimatedHostTimeOffset() { in getEstimatedHostTimeOffset()
25 : mName(name), mStartTime(SystemTime::getMonotonicTime()) {} in ScopeTimer()28 Nanoseconds stopTime = SystemTime::getMonotonicTime(); in ~ScopeTimer()
28 Nanoseconds SystemTime::getMonotonicTime() { in getMonotonicTime()43 int64_t SystemTime::getEstimatedHostTimeOffset() { in getEstimatedHostTimeOffset()
52 (SystemTime::getMonotonicTime() - samplingTime).toRawNanoseconds(); in audioSourceCallback()
73 mRefCountStart = Milliseconds(SystemTime::getMonotonicTime()); in incrementBigImageRefCount()119 duration = Milliseconds(SystemTime::getMonotonicTime()).getMilliseconds() - in checkBigImageDuration()
24 Milliseconds now = SystemTime::getMonotonicTime(); in getTimeMillis()
31 SystemTime::init(); in init()
108 SystemTime::getMonotonicTime() + in requestRanging()115 CHRE_ASSERT_LOG(SystemTime::getMonotonicTime() <= mRangingResponseTimeout, in requestRanging()138 SystemTime::getMonotonicTime()); in requestScan()171 mLastScanRequestTime = SystemTime::getMonotonicTime(); in requestScan()589 mRangingResponseTimeout = SystemTime::getMonotonicTime() + in dispatchQueuedRangingRequest()655 WifiScanRequestLog(SystemTime::getMonotonicTime(), nanoappInstanceId, in addWifiScanRequestLog()
75 SystemTime::getMonotonicTime(); in handleAudioDataEvent()117 SystemTime::getMonotonicTime() - in logStateToBuffer()245 Nanoseconds timeNow = SystemTime::getMonotonicTime(); in createAudioRequest()333 SystemTime::getMonotonicTime() + nextAudioRequest->deliveryInterval; in handleAudioDataEventSync()373 Nanoseconds curTime = SystemTime::getMonotonicTime(); in scheduleNextAudioDataEvent()
58 timerRequest.expirationTime = SystemTime::getMonotonicTime() + duration; in setTimer()225 Nanoseconds currentTime = SystemTime::getMonotonicTime(); in handleExpiredTimersAndScheduleNextLocked()
357 SystemTime::getMonotonicTime() - mTimeLastWakeupBucketCycled; in logStateToBuffer()518 Nanoseconds now = SystemTime::getMonotonicTime(); in handleNanoappWakeupBuckets()
26 class SystemTime {
11 use std::time::SystemTime;260 SystemTime::now().duration_since(SystemTime::UNIX_EPOCH).unwrap().as_micros(), in log()
55 : mTimeLastWakeupBucketCycled(SystemTime::getMonotonicTime()), in EventLoop()
291 SystemTime::getMonotonicTime() +
50 (SystemTime::getMonotonicTime() - samplingTime).toRawNanoseconds(); in audioReadCallback()
44 using ::chre::SystemTime;
46 time::SystemTime,712 let duration_since_epoch = SystemTime::now().duration_since(SystemTime::UNIX_EPOCH); in is_given_time_passed()