Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 25 of 49) sorted by relevance

12

/foundation/distributeddatamgr/distributeddatamgr/services/distributeddataservice/adapter/include/autils/
Dtime_utils.h31 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/
Dtime_monitor.cpp59 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/
Duuid.h133 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/
Dlog.h37 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/
Dkvstore_flowctrl_manager.cpp27 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/
Dsys_dfile_session.c26 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/
Dsys_dfile_session.c26 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/
Ddumper.cpp54 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/
Dtoss_animation_controller.cpp113 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/
Duuid.cpp27 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/
Ddh_utils_tool.cpp38 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/
Dethernet_service.cpp43 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/
Dbtm_snoop.c110 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/
Dbt_uuid.cpp29 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/
DBUILD.gn56 "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/
Dsnapshot_utils.cpp45 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/
Da2dp_codec_thread.cpp78 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/
Dsoftbus_tcp_socket.c88 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/
Dipc_test_helper.cpp333 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/
Dtime_monitor.h39 int64_t Timeval2Sec(const timeval &tv, TimeValType valType) const;
/foundation/communication/netmanager_base/services/netstatsmanager/src/
Dnet_stats_service.cpp67 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/
Dnet_policy_service.cpp55 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/
Dsoftbus_adapter_thread.c442 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/
Dhttp_request.cpp207 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/
Ddns_resolver_service.cpp45 struct timeval tv; in OnStart() local
46 gettimeofday(&tv, NULL); in OnStart()
57 gettimeofday(&tv, NULL); in OnStart()

12