Home
last modified time | relevance | path

Searched refs:nsec (Results 1 – 10 of 10) sorted by relevance

/base/powermgr/powermgr_lite/utils/include/
Dpower_mgr_time_util.h44 static inline int64_t NsecToUsec(int64_t nsec) in NsecToUsec() argument
46 return nsec / NSEC_PER_USEC; in NsecToUsec()
49 static inline int64_t NsecToMsec(int64_t nsec) in NsecToMsec() argument
51 return nsec / NSEC_PER_MSEC; in NsecToMsec()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_timestamp.h41 explicit LogTimeStamp(uint32_t sec, uint32_t nsec = 0)
42 : tv_sec(sec), tv_nsec(nsec) {} in tv_sec()
102 void SetTimeStamp(uint32_t sec, uint32_t nsec) in SetTimeStamp() argument
105 this->tv_nsec = nsec; in SetTimeStamp()
/base/startup/init/ueventd/standard/
Dueventd_parameter.c75 … long nsec = now.tv_usec * 1000 + (timeout % 1000) * 1000000; // 1000 unit 1000000 unit nsec in ThreadRun() local
76 …abstime.tv_sec = now.tv_sec + nsec / 1000000000 + timeout / 1000; // 1000 unit 1000000000 unit nsec in ThreadRun()
77 abstime.tv_nsec = nsec % 1000000000; // 1000000000 unit nsec in ThreadRun()
/base/hiviewdfx/hicollie/frameworks/native/
Dthread_sampler_utils.cpp38 uint64_t nsec = time % SEC_TO_NANOSEC; in TimeFormat() local
50 uint64_t usec = nsec / MICROSEC_TO_NANOSEC; in TimeFormat()
/base/startup/init/services/modules/bootchart/
Dbootchart.c181 … long nsec = now.tv_usec * 1000 + (timeout % 1000) * 1000000; // 1000 unit 1000000 unit nsec in BootchartThreadMain() local
182 …abstime.tv_sec = now.tv_sec + nsec / 1000000000 + timeout / 1000; // 1000 unit 1000000000 unit nsec in BootchartThreadMain()
183 abstime.tv_nsec = nsec % 1000000000; // 1000000000 unit nsec in BootchartThreadMain()
/base/hiviewdfx/hilog_lite/services/hilogcat/
Dhiview_logcat.c79 info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
/base/hiviewdfx/hilog_lite/interfaces/native/innerkits/hilog/
Dhiview_log.h323 unsigned int nsec; member
/base/hiviewdfx/hilog_lite/services/apphilogcat/
Dhiview_applogcat.c229 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
234 …info->tm_min, info->tm_sec, head->nsec / NANOSEC_PER_MIRCOSEC, head->pid, head->taskId, head->msg); in main()
/base/hiviewdfx/hilog/
DREADME_zh.md210 … | | nsec
/base/time/time_service/services/
Dtime_system_ability.cpp1098 std::chrono::nanoseconds nsec(triggerTime * MILLISECOND_TO_NANO); in SetAutoReboot() local
1099 auto second = std::chrono::duration_cast<std::chrono::seconds>(nsec); in SetAutoReboot()
1101 new_value.it_value.tv_nsec = (nsec - second).count(); in SetAutoReboot()