Lines Matching refs:diff_clk
48 int64_t diff_clk; member
75 sc->diff_clk += icount_to_ns(sc->last_cpu_icount - cpu_icount); in align_clocks()
78 if (sc->diff_clk > VM_CLOCK_ADVANCE) { in align_clocks()
81 sleep_delay.tv_sec = sc->diff_clk / 1000000000LL; in align_clocks()
82 sleep_delay.tv_nsec = sc->diff_clk % 1000000000LL; in align_clocks()
84 sc->diff_clk = rem_delay.tv_sec * 1000000000LL + rem_delay.tv_nsec; in align_clocks()
86 sc->diff_clk = 0; in align_clocks()
89 Sleep(sc->diff_clk / SCALE_MS); in align_clocks()
90 sc->diff_clk = 0; in align_clocks()
104 if ((-sc->diff_clk / (float)1000000000LL > threshold_delay) || in print_delay()
105 (-sc->diff_clk / (float)1000000000LL < in print_delay()
107 threshold_delay = (-sc->diff_clk / 1000000000LL) + 1; in print_delay()
123 sc->diff_clk = qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL) - sc->realtime_clock; in init_delay_params()
126 if (sc->diff_clk < max_delay) { in init_delay_params()
127 max_delay = sc->diff_clk; in init_delay_params()
129 if (sc->diff_clk > max_advance) { in init_delay_params()
130 max_advance = sc->diff_clk; in init_delay_params()