/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/include/autils/ |
D | time_utils.h | 31 struct timeval tv = { 0, 0 }; in CurrentTimeMicros() local 32 gettimeofday(&tv, nullptr); in CurrentTimeMicros() 33 return (tv.tv_sec * SEC_TO_MICROSEC + tv.tv_usec); in CurrentTimeMicros()
|
/foundation/multimedia/media_standard/services/utils/ |
D | time_monitor.cpp | 59 int64_t TimeMonitor::Timeval2Sec(const timeval &tv, TimeValType valType) const in Timeval2Sec() argument 62 if ((static_cast<int64_t>(tv.tv_sec) < (LLONG_MAX / valType)) && in Timeval2Sec() 63 (static_cast<int64_t>(tv.tv_usec) <= TIME_VAL_US)) { in Timeval2Sec() 64 …return static_cast<int64_t>(tv.tv_sec) * valType + static_cast<int64_t>(tv.tv_usec) * valType / TI… in Timeval2Sec()
|
/foundation/communication/bluetooth/interfaces/innerkits/native_cpp/include/ |
D | uuid.h | 133 struct timeval tv; in RandomUUID() local 139 gettimeofday(&tv, &tz); in RandomUUID() 140 localtime_r(&tv.tv_sec, &randomTime); in RandomUUID() 142 random.uuid_[15] = (uint8_t)(tv.tv_usec & 0x00000000000000FF); in RandomUUID() 143 random.uuid_[14] = (uint8_t)((tv.tv_usec & 0x000000000000FF00) >> 8); in RandomUUID() 144 random.uuid_[13] = (uint8_t)((tv.tv_usec & 0x0000000000FF0000) >> 16); in RandomUUID() 145 random.uuid_[12] = (uint8_t)((tv.tv_usec & 0x00000000FF000000) >> 24); in RandomUUID() 146 random.uuid_[10] = (uint8_t)((tv.tv_usec & 0x000000FF00000000) >> 32); in RandomUUID() 147 random.uuid_[9] = (uint8_t)((tv.tv_usec & 0x0000FF0000000000) >> 40); in RandomUUID() 148 random.uuid_[8] = (uint8_t)((tv.tv_usec & 0x00FF000000000000) >> 48); in RandomUUID() [all …]
|
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
D | log.h | 37 static inline void FillpLogGetNowTime(struct timeval *tv, struct tm *nowTime) 39 (void)gettimeofday(tv, FILLP_NULL_PTR); 40 time_t sec = (time_t)tv->tv_sec; 45 struct timeval tv; \ 47 FillpLogGetNowTime(&tv, &nowTime); \ 51 (long)tv.tv_usec, __func__, __LINE__, _pre, ##__VA_ARGS__); \
|
/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/app/src/flowctrl_manager/ |
D | kvstore_flowctrl_manager.cpp | 27 struct timeval tv = { 0, 0 }; in CurrentTimeMicros() local 28 gettimeofday(&tv, nullptr); in CurrentTimeMicros() 29 return (tv.tv_sec * SECOND_TO_MICROSECOND + tv.tv_usec / SECOND_TO_MICROSECOND); in CurrentTimeMicros()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/unix/dfile/ |
D | sys_dfile_session.c | 26 struct timeval tv; in WaitSocketEvent() local 60 tv.tv_sec = timeoutMs / NSTACKX_MILLI_TICKS; in WaitSocketEvent() 61 tv.tv_usec = (timeoutMs % NSTACKX_MILLI_TICKS) * NSTACKX_MICRO_SEC_PER_MILLI_SEC; in WaitSocketEvent() 63 int32_t ret = select(nfds, &readFds, &writeFds, NULL, &tv); in WaitSocketEvent()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_core/platform/liteos/dfile/ |
D | sys_dfile_session.c | 26 struct timeval tv; in WaitSocketEvent() local 60 tv.tv_sec = timeoutMs / NSTACKX_MILLI_TICKS; in WaitSocketEvent() 61 tv.tv_usec = (timeoutMs % NSTACKX_MILLI_TICKS) * NSTACKX_MICRO_SEC_PER_MILLI_SEC; in WaitSocketEvent() 63 int32_t ret = select(nfds, &readFds, &writeFds, NULL, &tv); in WaitSocketEvent()
|
/foundation/multimedia/media_standard/services/engine/gstreamer/common/utils/ |
D | dumper.cpp | 54 struct timeval tv; in DumpDotGraph() local 55 int ret = gettimeofday(&tv, nullptr); in DumpDotGraph() 63 uint64_t hour = static_cast<uint64_t>(tv.tv_sec / secPerHour); in DumpDotGraph() 64 uint32_t minute = static_cast<uint32_t>((tv.tv_sec / secPerMinute) % minutePerHour); in DumpDotGraph() 65 uint32_t sec = static_cast<uint32_t>(tv.tv_sec % minutePerHour); in DumpDotGraph() 66 uint32_t millsec = static_cast<uint32_t>(tv.tv_usec / usecPerMSec); in DumpDotGraph()
|
/foundation/ace/ace_engine/frameworks/core/components/picker/ |
D | toss_animation_controller.cpp | 113 struct timeval tv = { 0 }; in GetCurrentTime() local 114 int result = gettimeofday(&tv, nullptr); in GetCurrentTime() 120 double sec = static_cast<double>(tv.tv_sec); in GetCurrentTime() 121 double msec = static_cast<double>(tv.tv_usec / 1000.0); // usec / 1000 is msec in GetCurrentTime()
|
/foundation/multimodalinput/input/frameworks/util/common/src/ |
D | uuid.cpp | 27 struct timeval tv; in Uuid() local 33 gettimeofday(&tv, &tz); in Uuid() 34 localtime_r(&tv.tv_sec, &randomTime); in Uuid() 37 tvUsec = (unsigned long int)tv.tv_usec; in Uuid()
|
/foundation/distributedhardware/distributedhardwarefwk/utils/src/ |
D | dh_utils_tool.cpp | 38 struct timeval tv { in GetCurrentTime() struct 41 gettimeofday(&tv, nullptr); in GetCurrentTime() 42 return tv.tv_sec * MS_ONE_SECOND + tv.tv_usec / MS_ONE_SECOND; in GetCurrentTime()
|
/foundation/communication/netmanager_ext/services/ethernetmanager/src/ |
D | ethernet_service.cpp | 43 struct timeval tv; in OnStart() local 44 gettimeofday(&tv, NULL); in OnStart() 55 gettimeofday(&tv, NULL); in OnStart()
|
/foundation/communication/bluetooth/services/bluetooth_standard/stack/src/btm/ |
D | btm_snoop.c | 110 struct timeval tv; in BtmSnoopOutput() local 111 gettimeofday(&tv, NULL); in BtmSnoopOutput() 113 const uint64_t timestamp = MICROSECOND_1970BASE + tv.tv_sec * MICROSECOND + tv.tv_usec; in BtmSnoopOutput()
|
/foundation/communication/bluetooth/services/bluetooth_standard/common/ |
D | bt_uuid.cpp | 29 struct timeval tv = {}; in Random() local 36 gettimeofday(&tv, &tz); in Random() 37 localtime_r(&tv.tv_sec, &randomTime); in Random() 39 tvUsec = static_cast<unsigned long int>(tv.tv_usec); in Random()
|
/foundation/ace/ace_engine/adapter/preview/entrance/samples/ |
D | BUILD.gn | 56 "tv", 97 "//prebuilts/ace-toolkit/preview/rich/lib/mac/tv/libhmicuuc.dylib", 98 "//prebuilts/ace-toolkit/preview/rich/lib/mac/tv/libresourcemanager_mac.dylib", 112 "//prebuilts/ace-toolkit/preview/rich/lib/windows/tv/libhmicuuc.dll", 113 "//prebuilts/ace-toolkit/preview/rich/lib/windows/tv/libresourcemanager_win.dll",
|
/foundation/windowmanager/snapshot/ |
D | snapshot_utils.cpp | 45 timeval tv; in GenerateFileName() local 50 if (gettimeofday(&tv, nullptr) == 0) { in GenerateFileName() 51 tv.tv_sec += offset; // add offset second in GenerateFileName() 52 struct tm *tmVal = localtime(&tv.tv_sec); in GenerateFileName()
|
/foundation/communication/bluetooth/services/bluetooth_standard/service/src/gavdp/ |
D | a2dp_codec_thread.cpp | 78 struct timeval tv = {}; in ProcessMessage() local 80 gettimeofday(&tv, &tz); in ProcessMessage() 90 encoder_->SendFrames(tv.tv_usec); in ProcessMessage()
|
/foundation/communication/dsoftbus/core/connection/common/src/ |
D | softbus_tcp_socket.c | 88 struct timeval tv; in WaitEvent() local 89 tv.tv_sec = 0; in WaitEvent() 90 tv.tv_usec = timeout; in WaitEvent() 97 rc = TEMP_FAILURE_RETRY(SoftBusSocketSelect(fd + 1, NULL, &writeSet, NULL, &tv)); in WaitEvent() 110 rc = TEMP_FAILURE_RETRY(SoftBusSocketSelect(fd + 1, &readSet, NULL, NULL, &tv)); in WaitEvent()
|
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
D | ipc_test_helper.cpp | 333 struct timeval tv; in GetCurrentTimeMs() local 334 gettimeofday(&tv, nullptr); in GetCurrentTimeMs() 335 return tv.tv_sec * SECOND_TO_MS + tv.tv_usec / SECOND_TO_MS; in GetCurrentTimeMs()
|
/foundation/multimedia/media_standard/services/utils/include/ |
D | time_monitor.h | 39 int64_t Timeval2Sec(const timeval &tv, TimeValType valType) const;
|
/foundation/communication/netmanager_base/services/netstatsmanager/src/ |
D | net_stats_service.cpp | 67 struct timeval tv; in OnStart() local 68 gettimeofday(&tv, NULL); in OnStart() 83 gettimeofday(&tv, NULL); in OnStart()
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/ |
D | net_policy_service.cpp | 55 struct timeval tv; in OnStart() local 56 gettimeofday(&tv, NULL); in OnStart() 66 gettimeofday(&tv, NULL); in OnStart() 240 struct timeval tv; in GetCurrentTime() local 241 gettimeofday(&tv, NULL); in GetCurrentTime() 243 return tv.tv_sec; in GetCurrentTime()
|
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_a/ |
D | softbus_adapter_thread.c | 442 struct timespec tv; in SoftBusCondWait() local 443 tv.tv_sec = time->sec; in SoftBusCondWait() 444 tv.tv_nsec = time->usec; in SoftBusCondWait() 445 ret = pthread_cond_timedwait((pthread_cond_t *)*cond, (pthread_mutex_t *)*mutex, &tv); in SoftBusCondWait()
|
/foundation/communication/wifi/services/wifi_standard/wifi_framework/common/net_helper/ |
D | http_request.cpp | 207 struct timeval tv; in HttpDataTransmit() local 209 gettimeofday(&tv, nullptr); in HttpDataTransmit() 210 long long tvTime = tv.tv_sec * timeRate + tv.tv_usec / timeRate; in HttpDataTransmit()
|
/foundation/communication/netmanager_base/services/dnsresolvermanager/src/ |
D | dns_resolver_service.cpp | 45 struct timeval tv; in OnStart() local 46 gettimeofday(&tv, NULL); in OnStart() 57 gettimeofday(&tv, NULL); in OnStart()
|