Home
last modified time | relevance | path

Searched refs:MS_PER_SECOND (Results 1 - 19 of 19) sorted by relevance

/foundation/communication/dsoftbus/adapter/common/kernel/posix/
H A Dsoftbus_adapter_timer.c30 #define MS_PER_SECOND 1000 macro
81 value.it_value.tv_sec = tickets / MS_PER_SECOND; in SoftBusStartTimer()
87 value.it_interval.tv_sec = tickets / MS_PER_SECOND; in SoftBusStartTimer()
118 tm.tv_sec = ms / MS_PER_SECOND; in SoftBusSleepMs()
119 tm.tv_usec = (ms % MS_PER_SECOND) * US_PER_MSECOND; in SoftBusSleepMs()
164 return (uint64_t)time.tv_sec * MS_PER_SECOND + (uint64_t)time.tv_usec / US_PER_MSECOND; in SoftBusGetSysTimeMs()
169 uint32_t milliseconds = timestamp % MS_PER_SECOND;
170 time_t seconds = (time_t)(timestamp / MS_PER_SECOND);
/foundation/communication/dsoftbus/adapter/common/kernel/liteos_m/
H A Dsoftbus_adapter_timer.c24 #define MS_PER_SECOND 1000 macro
61 if (osTimerStart(timerId, ms * osKernelGetTickFreq() / MS_PER_SECOND) != osOK) { in SoftBusStartTimer()
86 osDelay(ms * osKernelGetTickFreq() / MS_PER_SECOND); in SoftBusSleepMs()
125 uint64_t ms = (uint64_t)time.tv_sec * MS_PER_SECOND + (uint64_t)time.tv_usec / US_PER_MSECOND; in SoftBusGetSysTimeMs()
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/cmsis/
H A Dtime_adapter.c19 #define MS_PER_SECOND 1000 macro
44 return (uint64)tick * MS_PER_SECOND / ticksPerSecond; in SAMGR_GetProcessTime()
/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/
H A Dtime_adapter.c19 #define MS_PER_SECOND 1000 macro
42 return ((ts.tv_sec * MS_PER_SECOND) + (ts.tv_nsec / NS_PER_MS)); in SAMGR_GetProcessTime()
/foundation/communication/dsoftbus/tests/sdk/transmission/trans_channel/udp/distributed_stream/
H A Ddistributed_stream_test.h27 #define MS_PER_SECOND (1000) macro
43 return time.tv_sec * MS_PER_SECOND + time.tv_nsec / NS_PER_MS; in GetCurrent()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/src/
H A Devent.c89 timeout.tv_sec = now.tv_sec + ms / MS_PER_SECOND; in EventWaitInternal()
90 timeout.tv_nsec = now.tv_usec * MS_PER_SECOND + (ms % MS_PER_SECOND) * NS_PER_MS; in EventWaitInternal()
/foundation/communication/bluetooth/frameworks/inner/c_adapter/
H A Dohos_bt_gatt_utils.cpp34 #define MS_PER_SECOND 1000 macro
52 return ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS; in GetBootMillis()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/include/
H A Dalarm.h29 #define MS_PER_SECOND 1000 macro
H A Devent.h26 #define MS_PER_SECOND 1000 macro
/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/
H A Dtimer.h24 #define MS_PER_SECOND 1000 macro
/foundation/graphic/graphic_utils_lite/frameworks/
H A Dgraphic_timer.cpp32 constexpr int16_t MS_PER_SECOND = 1000;
247 its.it_value.tv_nsec = (periodMs_ % MS_PER_SECOND) * NS_PER_MS; in Start()
248 its.it_value.tv_sec = periodMs_ / MS_PER_SECOND; in Start()
/foundation/communication/bluetooth_service/services/bluetooth/stack/platform/linux/
H A Dalarm_linux.c170 its.it_value.tv_sec = timeMs / MS_PER_SECOND; in AlarmSet()
171 its.it_value.tv_nsec = (timeMs % MS_PER_SECOND) * NS_PER_MS; in AlarmSet()
/foundation/resourceschedule/memmgr/services/memmgrservice/include/event/
H A Dmemory_pressure_observer.h23 #define MS_PER_SECOND 1000 macro
/foundation/communication/bluetooth_service/services/bluetooth/service/src/util/internal/
H A Dtimer_linux.cpp225 its.it_value.tv_sec = ms / MS_PER_SECOND; in Start()
226 its.it_value.tv_nsec = (ms % MS_PER_SECOND) * NS_PER_MS; in Start()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/common/
H A Dpower_device.h283 #define MS_PER_SECOND 1000 macro
H A Dpower_device.cpp313 deadLineMs_ = ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS + ms; in Start()
327 uint64_t presentMs = ts.tv_sec * MS_PER_SECOND + ts.tv_nsec / NS_PER_MS; in GetRemainMs()
/foundation/ability/form_fwk/interfaces/inner_api/include/
H A Dform_constants.h150 constexpr int64_t MS_PER_SECOND = 1000; member
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/udp/stream/libsoftbus_stream/
H A Dvtp_stream_socket.cpp44 const int MS_PER_SECOND = 1000; member
379 MS_PER_SECOND + fillpStatsGetTime.usec / US_PER_MS)); /* ms */ in FillpAppStatistics()
/foundation/ability/form_fwk/services/src/
H A Dform_timer_mgr.cpp351 int64_t refreshTime = timeInSec + nextGapTime * Constants::MS_PER_SECOND / timeSpeed_; in SetNextRefreshTime()

Completed in 11 milliseconds