Home
last modified time | relevance | path

Searched refs:hires_frequency (Results 1 – 2 of 2) sorted by relevance

/external/libusb/libusb/os/
Dwindows_nt_common.c40 static uint64_t hires_frequency; variable
315 hires_frequency = li_frequency.QuadPart; in windows_init_clock()
316 hires_ticks_to_ps = UINT64_C(1000000000000) / hires_frequency; in windows_init_clock()
317 usbi_dbg("hires timer available (Frequency: %"PRIu64" Hz)", hires_frequency); in windows_init_clock()
361 hires_frequency = 0; in windows_init_clock()
417 request->tp->tv_sec = (long)(hires_counter.QuadPart / hires_frequency); in windows_clock_gettime_threaded()
418 …request->tp->tv_nsec = (long)(((hires_counter.QuadPart % hires_frequency) / 1000) * hires_ticks_to… in windows_clock_gettime_threaded()
Dwince_usb.c36 static uint64_t hires_frequency, hires_ticks_to_ps; variable
209 hires_frequency = li_frequency.QuadPart; in wince_init()
212 hires_ticks_to_ps = UINT64_C(1000000000000) / hires_frequency; in wince_init()
213 usbi_dbg("hires timer available (Frequency: %"PRIu64" Hz)", hires_frequency); in wince_init()
216 hires_frequency = 0; in wince_init()
827 if (hires_frequency != 0 && QueryPerformanceCounter(&hires_counter)) { in wince_clock_gettime()
828 tp->tv_sec = (long)(hires_counter.QuadPart / hires_frequency); in wince_clock_gettime()
829 tp->tv_nsec = (long)(((hires_counter.QuadPart % hires_frequency) / 1000) * hires_ticks_to_ps); in wince_clock_gettime()