Searched refs:sNow (Results 1 – 11 of 11) sorted by relevance
/openthread-3.5.0/examples/platforms/simulation/virtual_time/ |
D | alarm-sim.c | 43 extern uint64_t sNow; // microseconds 55 sNow = 0; in platformAlarmInit() 58 uint64_t platformAlarmGetNow(void) { return sNow; } in platformAlarmGetNow() 60 void platformAlarmAdvanceNow(uint64_t aDelta) { sNow += aDelta; } in platformAlarmAdvanceNow() 62 uint32_t otPlatAlarmMilliGetNow(void) { return (uint32_t)(sNow / US_PER_MS); } in otPlatAlarmMilliGetNow() 79 uint32_t otPlatAlarmMicroGetNow(void) { return (uint32_t)sNow; } in otPlatAlarmMicroGetNow()
|
D | platform-sim.c | 62 uint64_t sNow = 0; // microseconds variable
|
/openthread-3.5.0/tests/unit/ |
D | test_timer.cpp | 47 uint32_t sNow; variable 69 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 86 uint32_t otPlatAlarmMicroGetNow(void) { return sNow; } in otPlatAlarmMicroGetNow() 149 sNow = kTimeT0; in TestOneTimer() 159 sNow += kTimerInterval; in TestOneTimer() 173 sNow = 0 - (kTimerInterval - 2); in TestOneTimer() 183 sNow += kTimerInterval; in TestOneTimer() 197 sNow = kTimeT0; in TestOneTimer() 207 sNow += kTimerInterval + 5; in TestOneTimer() 221 sNow = kTimeT0; in TestOneTimer() [all …]
|
D | test_multicast_listeners_table.cpp | 58 uint32_t sNow; variable 60 extern "C" uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 79 sNow = 1; in TestMulticastListenersTable() 92 sNow = 2; in TestMulticastListenersTable() 97 sNow = 10; in TestMulticastListenersTable() 119 sNow += 1; in TestMulticastListenersTable() 132 sNow += 10; in TestMulticastListenersTable()
|
D | test_link_metrics_manager.cpp | 48 static uint32_t sNow = 10000; variable 52 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 197 sNow += LinkMetricsManager::kStateUpdateIntervalMilliSec + 1; in TestLinkMetricsManager() 202 sNow += 1; in TestLinkMetricsManager() 204 VerifyOrQuit(subject1->mLastUpdateTime == TimeMilli(sNow)); in TestLinkMetricsManager()
|
D | test_trickle_timer.cpp | 39 static uint32_t sNow = 0; variable 53 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 61 uint32_t time = sNow + aDuration; in AdvanceTime() 65 sNow = sAlarmTime; in AdvanceTime() 69 sNow = time; in AdvanceTime() 121 sNow = 1000; in TestTrickleTimerPlainMode() 166 sNow = 1000; in TestTrickleTimerTrickleMode() 249 sNow = 1000; in TestTrickleTimerMinMaxIntervalChange()
|
D | test_srp_server.cpp | 58 …printf("%02u:%02u:%02u.%03u " OT_FIRST_ARG(__VA_ARGS__) "\n", (sNow / 36000000), (sNow / 60000) % … 59 (sNow / 1000) % 60, sNow % 1000 OT_REST_ARGS(__VA_ARGS__)) 65 static uint32_t sNow = 0; variable 106 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 173 uint32_t time = sNow + aDuration; in AdvanceTime() 180 sNow = sAlarmTime; in AdvanceTime() 185 sNow = time; in AdvanceTime() 193 sNow = 0; in InitTest()
|
D | test_dns_client.cpp | 61 …printf("%02u:%02u:%02u.%03u " OT_FIRST_ARG(__VA_ARGS__) "\n", (sNow / 36000000), (sNow / 60000) % … 62 (sNow / 1000) % 60, sNow % 1000 OT_REST_ARGS(__VA_ARGS__)) 68 static uint32_t sNow = 0; variable 109 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 176 uint32_t time = sNow + aDuration; in AdvanceTime() 183 sNow = sAlarmTime; in AdvanceTime() 188 sNow = time; in AdvanceTime() 196 sNow = 0; in InitTest()
|
D | test_dso.cpp | 45 static uint32_t sNow = 0; variable 52 …printf("%02u:%02u:%02u.%03u " OT_FIRST_ARG(__VA_ARGS__) "\n", (sNow / 36000000), (sNow / 60000) % … 53 (sNow / 1000) % 60, sNow % 1000 OT_REST_ARGS(__VA_ARGS__)) 63 (sAlarmTime - sNow) / 1000, (sAlarmTime - sNow) % 1000); in otPlatAlarmMilliStartAt() 66 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 72 uint32_t time = sNow + aDuration; in AdvanceTime() 78 sNow = sAlarmTime; in AdvanceTime() 82 sNow = time; in AdvanceTime() 551 sNow = 0; in TestDso()
|
D | test_routing_manager.cpp | 52 …printf("%02u:%02u:%02u.%03u " OT_FIRST_ARG(__VA_ARGS__) "\n", (sNow / 3600000), (sNow / 60000) % 6… 53 (sNow / 1000) % 60, sNow % 1000 OT_REST_ARGS(__VA_ARGS__)) 116 static uint32_t sNow = 0; variable 258 uint32_t otPlatAlarmMilliGetNow(void) { return sNow; } in otPlatAlarmMilliGetNow() 351 uint32_t time = sNow + aDuration; in AdvanceTime() 358 sNow = sAlarmTime; in AdvanceTime() 363 sNow = time; in AdvanceTime() 955 sNow = 0; in InitTest()
|
/openthread-3.5.0/src/posix/platform/ |
D | virtual_time.cpp | 51 static uint64_t sNow = 0; ///< Time of simulation. variable 135 sNow += aEvent->mDelay; in virtualTimeReceiveEvent() 187 uint64_t otPlatTimeGet(void) { return sNow; } in otPlatTimeGet()
|