Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 - 25 of 127) sorted by relevance

123456

/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
H A Dlog_timestamp.h33 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 Dhc_time.c36 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 Ddate_utils.h35 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 Ddate_utils.h34 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 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/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/
H A Dhilogclient_fuzzer.cpp36 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 Dlog_collector.cpp45 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo()
119 .tv_sec = msg.tv_sec, in onDataRecv()
H A Dkmsg_parser.cpp98 msg.tv_sec = static_cast<uint32_t>(ts.tv_sec); in ParseKmsg()
/base/telephony/ril_adapter/services/hril/src/
H A Dhril_event.cpp34 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 Dstartup_time_event.c62 (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 Dpower_mgr_time_util.c22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
/base/hiviewdfx/hilog/frameworks/libhilog/base/
H A Dhilog_base.c59 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 Dlog_data.h34 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 Dlog_stats.h42 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 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_SE in GetMonotonicTimeMs()
[all...]
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/
H A Dthread_sampler_utils.cpp30 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 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/tee/tee_client/services/teecd/src/
H A Dmisc_work_agent.c35 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 Dglobal.cpp28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
/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/hiview/base/utility/
H A Dtime_util.cpp45 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 Dhilog_printf.cpp178 .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 Dtest.cpp62 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 Dinit_utils.c369 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 Dhilog_base.h37 uint32_t tv_sec; member

Completed in 10 milliseconds

123456