/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
H A D | log_timestamp.h | 33 tv_sec = static_cast<uint32_t>(time.tv_sec); in LogTimeStamp() 38 : tv_sec(static_cast<uint32_t>(time.tv_sec)), 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 ==() 56 return (tv_sec < time.tv_sec) || in operator <() 57 ((tv_sec in operator <() 113 uint32_t tv_sec = 0; global() member in OHOS::HiviewDFX::LogTimeStamp [all...] |
/base/security/device_auth/deps_adapter/os_adapter/impl/src/ |
H A D | hc_time.c | 36 return start.tv_sec;
in HcGetCurTime() 47 return start.tv_sec * SECOND_TO_MILLISECOND + start.tv_nsec / MILLISECOND_TO_NANOSECOND;
in HcGetCurTimeInMillis() 62 if (end.tv_sec < startTime) {
in HcGetIntervalTime() 66 return (end.tv_sec - startTime);
in HcGetIntervalTime()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/utils/ |
H A D | date_utils.h | 35 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis() 48 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
|
/base/global/resource_management/frameworks/resmgr/include/utils/ |
H A D | date_utils.h | 34 return (time.tv_sec * KILO + time.tv_usec / KILO); in CurrentTimeMillis() 47 return (time.tv_sec * MILLION + time.tv_usec); in CurrentTimeUsec()
|
/base/security/huks/frameworks/huks_standard/main/os_dependency/posix/ |
H A D | hks_util.c | 32 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/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/ |
H A D | hilogclient_fuzzer.cpp | 36 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in DoSomethingInterestingWithMyAPI() 38 header.mono_sec = static_cast<uint32_t>(tsMono.tv_sec); in DoSomethingInterestingWithMyAPI()
|
/base/hiviewdfx/hilog/services/hilogd/ |
H A D | log_collector.cpp | 45 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo() 119 .tv_sec = msg.tv_sec, in onDataRecv()
|
H A D | kmsg_parser.cpp | 98 msg.tv_sec = static_cast<uint32_t>(ts.tv_sec); in ParseKmsg()
|
/base/telephony/ril_adapter/services/hril/src/ |
H A D | hril_event.cpp | 34 tv.tv_sec = ts.tv_sec; in GetNowTime() 48 TELEPHONY_LOGD("now = %{public}ds + %{public}dus", (int32_t)now.tv_sec, (int32_t)now.tv_usec); in GetNextTimeOut() 50 "next = %{public}ds + %{public}dus", (int32_t)eventIt->timeout.tv_sec, (int32_t)eventIt->timeout.tv_usec); in GetNextTimeOut() 55 tv.tv_sec = tv.tv_usec = 0; in GetNextTimeOut() 67 TELEPHONY_LOGD("finding for timers <= %{public}ds + %{public}dus", (int32_t)now.tv_sec, (int32_t)now.tv_usec); in ProcessTimerList() 236 "Setting timeout for %{public}ds + %{public}dus", (int32_t)timeout.tv_sec, (int32_t)timeout.tv_usec); in EventMessageLoop()
|
/base/startup/init/services/modules/sysevent/ |
H A D | startup_time_event.c | 62 (uint32_t)item->timestamp[BOOTEVENT_FORK].tv_sec,
in TraversalEvent() 64 (uint32_t)item->timestamp[BOOTEVENT_READY].tv_sec,
in TraversalEvent() 116 startupTime.totalTime = curr.tv_sec;
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 D | power_mgr_time_util.c | 22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
|
/base/hiviewdfx/hilog/frameworks/libhilog/base/ |
H A D | hilog_base.c | 59 header->tv_sec = (uint32_t)(ts.tv_sec);
in SendMessage() 61 header->mono_sec = (uint32_t)(ts_mono.tv_sec);
in SendMessage()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_data.h | 34 uint32_t tv_sec; 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 D | log_stats.h | 42 uint32_t tv_sec;
member 121 std::cout << "Max freq ts: " << realTimeFreqMax.tv_sec << "." << realTimeFreqMax.tv_nsec << sep;
in Print() 123 std::cout << "Max throughput ts: " << realTimeThroughputMax.tv_sec << ".";
in Print()
|
/base/time/time_service/interfaces/inner_api/src/ |
H A D | time_service_client.cpp | 473 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_SE in GetMonotonicTimeMs() [all...] |
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/ |
H A D | thread_sampler_utils.cpp | 30 t.tv_sec = 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 D | utils_datetime.c | 39 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/tee/tee_client/services/teecd/src/ |
H A D | misc_work_agent.c | 35 transControl->Args.GetTime.seconds = (uint32_t)timeVal.tv_sec; in GetTimeWork() 37 struct tm *tstruct = localtime(&(timeVal.tv_sec)); in GetTimeWork()
|
/base/inputmethod/imf/test/unittest/cpp_test/mock/ |
H A D | global.cpp | 28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
|
/base/powermgr/power_manager/utils/native/include/ |
H A D | power_time.h | 31 return (ts.tv_sec * MS_TO_S + ts.tv_nsec / NS_TO_MS); in GetCurrentRealTimeMs()
|
/base/hiviewdfx/hiview/base/utility/ |
H A D | time_util.cpp | 45 return (now.tv_sec * SEC_TO_MICROSEC + now.tv_usec); in GenerateTimestamp() 83 time_t systemSeconds = currentTime.tv_sec; in GetTimeZone() 152 return static_cast<uint64_t>(ts.tv_sec * SEC_TO_MILLISEC + ts.tv_nsec / MILLISEC_TO_NANOSEC); in GetBootTimeMs()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ |
H A D | hilog_printf.cpp | 178 .tv_sec = header.tv_sec, in PrintLog() 239 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in HiLogPrintArgs() 241 header.mono_sec = static_cast<uint32_t>(ts_mono.tv_sec); in HiLogPrintArgs()
|
/base/security/selinux_adapter/framework/tools/param_check/ |
H A D | test.cpp | 62 int runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in TestLoadList() 85 runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in TestLoadList() 102 int runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in TestGetContext() 124 int runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in TestReadPara() 139 int runtime_us = diff.tv_sec * USEC_PER_SEC + diff.tv_usec; in TestSetPara()
|
/base/startup/init/services/utils/ |
H A D | init_utils.c | 369 long long diff = (long long)(stat->endTime.tv_sec - stat->startTime.tv_sec) * 1000000; // 1000000 1000ms
in InitDiffTime() 736 if (endTime->tv_sec > startTime->tv_sec) {
in IntervalTime() 737 diff = (uint32_t)(endTime->tv_sec - startTime->tv_sec);
in IntervalTime() 739 diff = (uint32_t)(startTime->tv_sec - endTime->tv_sec);
in IntervalTime() 837 return ((long long)uptime->tv_sec * SECOND_TO_MICRO_SECOND) +
in GetUptimeInMicroSeconds()
|
/base/hiviewdfx/hilog/frameworks/libhilog/include/ |
H A D | hilog_base.h | 37 uint32_t tv_sec;
member
|