Searched refs:now_ns (Results 1 – 2 of 2) sorted by relevance
32 int64_t now_ns; member43 qemu_put_be64(f, s->now_ns); /* in case the kernel is in the middle of a timer read */ in goldfish_timer_save()46 int64_t now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_save() local48 qemu_put_be64(f, alarm_ns - now_ns); in goldfish_timer_save()59 s->now_ns = qemu_get_be64(f); in goldfish_timer_load()81 s->now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_read()82 return s->now_ns; in goldfish_timer_read()84 return s->now_ns >> 32; in goldfish_timer_read()94 int64_t alarm_ns, now_ns; in goldfish_timer_write() local99 now_ns = qemu_get_clock_ns(vm_clock); in goldfish_timer_write()[all …]
293 int64_t now_ns; in _hwSensorClient_tick() local340 now_ns = qemu_get_clock_ns(vm_clock); in _hwSensorClient_tick()342 snprintf(buffer, sizeof buffer, "sync:%" PRId64, now_ns/1000); in _hwSensorClient_tick()355 qemu_mod_timer(cl->timer, now_ns + delay); in _hwSensorClient_tick()