diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-07 23:47:54 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-07 23:47:54 +0200 |
commit | 519bad1fca5b774564d68c8c2441523c5038c57f (patch) | |
tree | 0ba26a5ba5ee5990caf6eab39ecffe72770ba5f3 /robot/hypervisor.c | |
parent | 0d3c52e49dc34344f335fd6d7b214592723cbc93 (diff) |
`make format` + removed debug messages0.5.0
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; |