Home
last modified time | relevance | path

Searched refs:tv_nsec (Results 1 - 25 of 95) sorted by relevance

1234

/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
H A Dlog_timestamp.h34 tv_nsec = static_cast<uint32_t>(time.tv_nsec); in LogTimeStamp()
39 tv_nsec(static_cast<uint32_t>(time.tv_nsec)) {} in LogTimeStamp()
42 : tv_sec(sec), tv_nsec(nsec) {} in LogTimeStamp()
46 return (tv_sec == time.tv_sec) && (tv_nsec == time.tv_nsec); in operator ==()
57 ((tv_sec == time.tv_sec) && (tv_nsec < time.tv_nsec)); in operator <()
68 ((tv_sec == time.tv_sec) && (tv_nsec > tim in operator >()
114 uint32_t tv_nsec = 0; global() member in OHOS::HiviewDFX::LogTimeStamp
[all...]
H A Dlog_print.h30 uint32_t tv_nsec; member
/base/security/huks/frameworks/huks_standard/main/os_dependency/posix/
H A Dhks_util.c32 if ((curTime.tv_sec >= (time_t)((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS >= S_TO_MS)) { in HksElapsedRealTime()
36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksElapsedRealTime()
/base/startup/appspawn/lite/
H A Dappspawn_service.c38 if (endTime->tv_nsec > startTime->tv_nsec) { in DiffTime()
39 diff += (endTime->tv_nsec - startTime->tv_nsec) / 1000; // 1000 ns - us in DiffTime()
41 diff -= (startTime->tv_nsec - endTime->tv_nsec) / 1000; // 1000 ns - us in DiffTime()
/base/hiviewdfx/hilog/services/hilogd/
H A Dlog_stats.cpp42 LogTimeStamp ts_mono(info.mono_sec, info.tv_nsec); in UpdateStats()
63 entry.monoTimeAuditStart.SetTimeStamp(info.mono_sec, info.tv_nsec); in UpdateStats()
72 entry.monoTimeLast.SetTimeStamp(info.mono_sec, info.tv_nsec); in UpdateStats()
73 entry.realTimeLast.SetTimeStamp(info.tv_sec, info.tv_nsec); in UpdateStats()
100 entry.realTimeFreqMax.SetTimeStamp(info.tv_sec, info.tv_nsec); in StatsInfo2NewStatsEntry()
103 entry.realTimeThroughputMax.SetTimeStamp(info.tv_sec, info.tv_nsec); in StatsInfo2NewStatsEntry()
104 entry.realTimeLast.SetTimeStamp(info.tv_sec, info.tv_nsec); in StatsInfo2NewStatsEntry()
105 entry.monoTimeLast.SetTimeStamp(info.mono_sec, info.tv_nsec); in StatsInfo2NewStatsEntry()
106 entry.monoTimeAuditStart.SetTimeStamp(info.mono_sec, info.tv_nsec); in StatsInfo2NewStatsEntry()
H A Dlog_collector.cpp46 dropMsg->tv_nsec = msg.tv_nsec; in InsertDropInfo()
120 .tv_nsec = msg.tv_nsec, in onDataRecv()
H A Dkmsg_parser.cpp99 msg.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in ParseKmsg()
/base/startup/init/services/loopevent/task/
H A Dle_asynctask.c47 if (endTime.tv_nsec > startTime.tv_nsec) { in DoAsyncEvent_()
48 diff += (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_()
50 diff -= (endTime.tv_nsec - startTime.tv_nsec) / THOUSAND_MILLISECOND; // 1000 ms in DoAsyncEvent_()
/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/
H A Dhilogclient_fuzzer.cpp37 header.tv_nsec = static_cast<uint32_t>(ts.tv_nsec); in DoSomethingInterestingWithMyAPI()
/base/startup/init/services/modules/sysevent/
H A Dstartup_time_event.c63 (uint32_t)(item->timestamp[BOOTEVENT_FORK].tv_nsec / USTONSEC), in TraversalEvent()
65 (uint32_t)(item->timestamp[BOOTEVENT_READY].tv_nsec / USTONSEC)); in TraversalEvent()
118 startupTime.totalTime += curr.tv_nsec / USTONSEC; in ReportBootEventComplete()
131 (uint32_t)curr.tv_sec, (uint32_t)(curr.tv_nsec / USTONSEC), args.currLen, startupTime.detailTime); in ReportBootEventComplete()
/base/powermgr/powermgr_lite/utils/src/
H A Dpower_mgr_time_util.c22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
/base/hiviewdfx/hilog/services/hilogd/include/
H A Dlog_data.h35 uint32_t tv_nsec; member
67 tv_sec(msg.tv_sec), tv_nsec(msg.tv_nsec), mono_sec(msg.mono_sec), pid(msg.pid), tid(msg.tid), in HilogData()
H A Dlog_stats.h43 uint32_t tv_nsec; member
121 std::cout << "Max freq ts: " << realTimeFreqMax.tv_sec << "." << realTimeFreqMax.tv_nsec << sep; in Print()
124 std::cout << realTimeThroughputMax.tv_nsec << sep; in Print()
/base/time/time_service/interfaces/inner_api/src/
H A Dtime_service_client.cpp473 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
485 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
498 time = tv.tv_sec * NANO_TO_SEC + tv.tv_nsec; in GetWallTimeNs()
510 time = tv.tv_sec * NANO_TO_SEC + tv.tv_nsec; in GetWallTimeNs()
523 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
535 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
548 time = tv.tv_sec * NANO_TO_SEC + tv.tv_nsec; in GetBootTimeNs()
560 time = tv.tv_sec * NANO_TO_SEC + tv.tv_nsec; in GetBootTimeNs()
573 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()
585 time = tv.tv_sec * MILLI_TO_SEC + tv.tv_nsec / NANO_TO_MILL in GetMonotonicTimeMs()
[all...]
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler_utils.cpp31 t.tv_nsec = 0; in GetCurrentTimeNanoseconds()
33 return static_cast<uint64_t>(t.tv_sec) * SEC_TO_NANOSEC + static_cast<uint64_t>(t.tv_nsec); in GetCurrentTimeNanoseconds()
/base/security/device_security_level/baselib/utils/src/
H A Dutils_datetime.c39 result = (uint64_t)(ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC); in GetMillisecondSinceBoot()
52 return ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC; in GetMillisecondSince1970()
/base/powermgr/power_manager/utils/native/include/
H A Dpower_time.h31 return (ts.tv_sec * MS_TO_S + ts.tv_nsec / NS_TO_MS); in GetCurrentRealTimeMs()
/base/hiviewdfx/hilog/frameworks/libhilog/include/
H A Dhilog_base.h38 uint32_t tv_nsec; member
/base/powermgr/display_manager/brightness_manager/include/
H A Dbrightness_base.h55 return static_cast<int64_t>(val.tv_sec) * MSECPERSEC + val.tv_nsec / NSECPERMSEC; in GetCurrentTimeMillis()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_time.c47 return start.tv_sec * SECOND_TO_MILLISECOND + start.tv_nsec / MILLISECOND_TO_NANOSECOND; in HcGetCurTimeInMillis()
/base/hiviewdfx/hilog/frameworks/libhilog/base/
H A Dhilog_base.c60 header->tv_nsec = (uint32_t)(ts.tv_nsec); in SendMessage()
/base/hiviewdfx/faultloggerd/common/cutil/
H A Ddfx_cutil.c130 (((uint64_t)ts.tv_nsec) / NUMBER_ONE_MILLION); // 1000000 : nanosecond to millisecond convert ratio in GetTimeMilliseconds()
161 ((uint64_t)(ts.tv_nsec) / NUMBER_ONE_MILLION); in GetAbsTimeMilliSeconds()
/base/powermgr/battery_statistics/utils/native/src/
H A Dstats_helper.cpp39 rawBootTime.tv_nsec / StatsUtils::NS_IN_MS); in GetBootTimeMs()
54 rawUpTime.tv_nsec / StatsUtils::NS_IN_MS); in GetUpTimeMs()
/base/startup/init/test/unittest/modules/
H A Dsysevent_unittest.cpp109 startupTime.totalTime += curr.tv_nsec / USTONSEC; in HWTEST_F()
126 startupTime.totalTime += curr.tv_nsec / USTONSEC; in HWTEST_F()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
H A Dlog_print.cpp117 out << setw(MSEC_WIDTH) << (content.tv_nsec / NS2MS); in PrintLogPrefix()
119 out << setw(USEC_WIDTH) << (content.tv_nsec / NS2US); in PrintLogPrefix()
121 out << setw(NSEC_WIDTH) << content.tv_nsec; in PrintLogPrefix()

Completed in 8 milliseconds

1234