/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
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 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 …]
|
D | log_print.h | 29 uint32_t tv_sec; member
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | write_controller.cpp | 49 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/ |
D | hc_time.c | 33 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/ |
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/global/resource_management/frameworks/resmgr/include/utils/ |
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/global/resource_management_lite/frameworks/resmgr_lite/include/utils/ |
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/security/huks/services/huks_standard/huks_engine/main/core_dependency/src/ |
D | hks_core_hal_api.c | 32 …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/ |
D | hril_event.cpp | 34 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/ |
D | startup_time_event.c | 61 (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/ |
D | log_collector.cpp | 45 dropMsg->tv_sec = msg.tv_sec; in InsertDropInfo() 119 .tv_sec = msg.tv_sec, in onDataRecv()
|
D | kmsg_parser.cpp | 136 msg.tv_sec = static_cast<uint32_t>(ts.tv_sec); in ParseKmsg()
|
D | log_stats.cpp | 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()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
D | log_data.h | 34 uint32_t tv_sec; member 71 … tv_sec(msg.tv_sec), tv_nsec(msg.tv_nsec), mono_sec(msg.mono_sec), pid(msg.pid), tid(msg.tid), in HilogData()
|
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/security/device_security_level/baselib/utils/src/ |
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/powermgr/powermgr_lite/utils/src/ |
D | power_mgr_time_util.c | 22 return SecToMsec(ts.tv_sec) + NsecToMsec(ts.tv_nsec); in GetCurrentTimeMsec()
|
/base/security/selinux_adapter/interfaces/tools/param_check/ |
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/hiviewdfx/hilog/frameworks/libhilog/ |
D | hilog_printf.cpp | 169 .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/ |
D | time_system_ability.cpp | 358 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, ×tr)); 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/ |
D | stats_helper.cpp | 38 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/ |
D | global.cpp | 28 localtime_r(&tv.tv_sec, &nowTime); in LogTimeStamp()
|
/base/startup/init/test/unittest/modules/ |
D | sysevent_unittest.cpp | 106 startupTime.totalTime = curr.tv_sec; 123 startupTime.totalTime = curr.tv_sec;
|
/base/hiviewdfx/hidumper/frameworks/native/ |
D | common.h | 38 if (localtime_r(&tp.tv_sec, &curTime) != nullptr) { \
|
/base/startup/init/ueventd/standard/ |
D | ueventd_parameter.c | 76 …abstime.tv_sec = now.tv_sec + nsec / 1000000000 + timeout / 1000; // 1000 unit 1000000000 unit nsec in ThreadRun()
|