diff options
Diffstat (limited to 'robot/hypervisor.c')
-rw-r--r-- | robot/hypervisor.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/robot/hypervisor.c b/robot/hypervisor.c index 8b9d727..be3fb77 100644 --- a/robot/hypervisor.c +++ b/robot/hypervisor.c @@ -14,7 +14,7 @@ unsigned long g_w2_hypervisor_ema_io_ms = 0; unsigned long g_w2_hypervisor_ema_mode_ms = 0; uint64_t g_w2_hypervisor_timers[W2_HYPERVISOR_TIMER_COUNT] = {0}; -uint64_t g_w2_hypervisor_ms_timer_offset = 0; +uint64_t g_w2_hypervisor_ms_timer_offset = 0; uint64_t g_w2_hypervisor_ms_timer_cpu_ticks = 0; unsigned int g_w2_ping_ms = 0; @@ -65,9 +65,7 @@ uint64_t w2_get_ms() { return ticks_to_microseconds(get_ticks() - g_w2_hypervisor_ms_timer_offset) / 1e3; } -void w2_time_reset() { - g_w2_hypervisor_ms_timer_offset = get_ticks(); -} +void w2_time_reset() { g_w2_hypervisor_ms_timer_offset = get_ticks(); } void w2_hypervisor_time_start(uint8_t label) { g_w2_hypervisor_timers[label] = g_w2_hypervisor_uptime_ms; |