Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 25 of 101) sorted by relevance

12345

/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
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 tv_sec() function
46 return (tv_sec == time.tv_sec) && (tv_nsec == time.tv_nsec);
56 return (tv_sec < time.tv_sec) ||
57 ((tv_sec == time.tv_sec) && (tv_nsec < time.tv_nsec));
67 return (tv_sec > time.tv_sec) ||
68 ((tv_sec == time.tv_sec) && (tv_nsec > time.tv_nsec));
78 tv_sec = tv_nsec = 0;
82 --this->tv_sec;
[all …]
Dlog_print.h29 uint32_t tv_sec; member
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dwrite_controller.cpp49 if ((stat.begin.tv_sec + static_cast<time_t>(param.period) < cur.tv_sec) || in CheckLimitWritingEvent()
50 (stat.begin.tv_sec > cur.tv_sec)) { in CheckLimitWritingEvent()
65 param.period, param.threshold, static_cast<long long>(stat.begin.tv_sec), in CheckLimitWritingEvent()
66 static_cast<long long>(cur.tv_sec), stat.count - param.threshold, domain, eventName, func); in CheckLimitWritingEvent()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
Dhc_time.c33 return start.tv_sec; in HcGetCurTime()
48 if (end.tv_sec < startTime) { in HcGetIntervalTime()
52 return (end.tv_sec - startTime); in HcGetIntervalTime()
/base/hiviewdfx/hilog/test/fuzztest/hilogclient_fuzzer/
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/global/resource_management/frameworks/resmgr/include/utils/
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/global/resource_management_lite/frameworks/resmgr_lite/include/utils/
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/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/
Dhks_core_hal_api.c32 …if ((curTime.tv_sec >= (time_t)((UINT64_MAX - S_TO_MS) / S_TO_MS)) || (curTime.tv_nsec / MS_TO_NS … in HksCoreHalElapsedRealTime()
36 *timestampMs = (uint64_t)(curTime.tv_sec * S_TO_MS + curTime.tv_nsec / MS_TO_NS); in HksCoreHalElapsedRealTime()
/base/telephony/ril_adapter/services/hril/src/
Dhril_event.cpp34 tv.tv_sec = ts.tv_sec; in GetNowTime()
47 TELEPHONY_LOGD("now = %{public}ds + %{public}dus", (int32_t)now.tv_sec, (int32_t)now.tv_usec); in GetNextTimeOut()
49 …"next = %{public}ds + %{public}dus", (int32_t)eventIt->timeout.tv_sec, (int32_t)eventIt->timeout.t… in GetNextTimeOut()
54 tv.tv_sec = tv.tv_usec = 0; in GetNextTimeOut()
66 …TELEPHONY_LOGD("finding for timers <= %{public}ds + %{public}dus", (int32_t)now.tv_sec, (int32_t)n… in ProcessTimerList()
209 …"Setting timeout for %{public}ds + %{public}dus", (int32_t)timeout.tv_sec, (int32_t)timeout.tv_use… in EventMessageLoop()
/base/startup/init/services/modules/sysevent/
Dstartup_time_event.c61 (uint32_t)item->timestamp[BOOTEVENT_FORK].tv_sec, in TraversalEvent()
63 (uint32_t)item->timestamp[BOOTEVENT_READY].tv_sec, in TraversalEvent()
88 startupTime.totalTime = curr.tv_sec; in ReportBootEventComplete()
103 … (uint32_t)curr.tv_sec, (uint32_t)(curr.tv_nsec / USTONSEC), args.currLen, startupTime.detailTime); in ReportBootEventComplete()
/base/hiviewdfx/hilog/services/hilogd/
Dlog_collector.cpp45 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo()
119 .tv_sec = msg.tv_sec, in onDataRecv()
Dkmsg_parser.cpp136 msg.tv_sec = static_cast<uint32_t>(ts.tv_sec); in ParseKmsg()
Dlog_stats.cpp73 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()
/base/hiviewdfx/hilog/services/hilogd/include/
Dlog_data.h34 uint32_t tv_sec; member
71tv_sec(msg.tv_sec), tv_nsec(msg.tv_nsec), mono_sec(msg.mono_sec), pid(msg.pid), tid(msg.tid), in HilogData()
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/security/device_security_level/baselib/utils/src/
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/powermgr_lite/utils/src/
Dpower_mgr_time_util.c22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
/base/security/selinux_adapter/interfaces/tools/param_check/
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/hiviewdfx/hilog/frameworks/libhilog/
Dhilog_printf.cpp169 .tv_sec = header.tv_sec, in PrintLog()
201 header.tv_sec = static_cast<uint32_t>(ts.tv_sec); in HiLogPrintArgs()
203 header.mono_sec = static_cast<uint32_t>(ts_mono.tv_sec); in HiLogPrintArgs()
/base/time/time_service/services/
Dtime_system_ability.cpp358 tv.tv_sec = (time_t)(time / MILLI_TO_BASE); in SetRealTime()
365 auto ret = SetRtcTime(tv.tv_sec); in SetRealTime()
409 … strftime(date_time, sizeof(date_time), "%Y-%m-%d %H:%M:%S", localtime_r(&ts.tv_sec, &timestr)); in DumpAllTimeInfo()
604 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetWallTimeMs()
614 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetWallTimeNs()
624 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetBootTimeMs()
634 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetBootTimeNs()
644 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetMonotonicTimeMs()
654 times = tv.tv_sec * NANO_TO_BASE + tv.tv_nsec; in GetMonotonicTimeNs()
670 times = tv.tv_sec * MILLI_TO_BASE + tv.tv_nsec / NANO_TO_MILLI; in GetThreadTimeMs()
[all …]
/base/powermgr/battery_statistics/utils/native/src/
Dstats_helper.cpp38 bootTimeMs = static_cast<int64_t>(rawBootTime.tv_sec * StatsUtils::MS_IN_SECOND + in GetBootTimeMs()
53 upTimeMs = static_cast<int64_t>(rawUpTime.tv_sec * StatsUtils::MS_IN_SECOND + in GetUpTimeMs()
/base/inputmethod/imf/services/src/
Dglobal.cpp28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
/base/startup/init/test/unittest/modules/
Dsysevent_unittest.cpp106 startupTime.totalTime = curr.tv_sec;
123 startupTime.totalTime = curr.tv_sec;
/base/hiviewdfx/hidumper/frameworks/native/
Dcommon.h38 if (localtime_r(&tp.tv_sec, &curTime) != nullptr) { \
/base/startup/init/ueventd/standard/
Dueventd_parameter.c76 …abstime.tv_sec = now.tv_sec + nsec / 1000000000 + timeout / 1000; // 1000 unit 1000000000 unit nsec in ThreadRun()

12345