Sha256: 7b6df9ea1dce337ce998888fd376f18b9587595fe4f2460cceeea30921eb69ae
Contents?: true
Size: 582 Bytes
Versions: 50
Compression:
Stored size: 582 Bytes
Contents
#ifdef USE_INSTANT_WINDOWS #include "hitimes_interval.h" /* * returns the conversion factor, this value is used to convert * the value from hitimes_get_current_instant() into seconds */ long double hitimes_instant_conversion_factor() { LARGE_INTEGER ticks_per_second; QueryPerformanceFrequency( &ticks_per_second ); return (double)ticks_per_second.QuadPart; } /* * returns the number of ticks */ hitimes_instant_t hitimes_get_current_instant() { LARGE_INTEGER tick; QueryPerformanceCounter(&tick); return (hitimes_instant_t)tick.QuadPart; } #endif
Version data entries
50 entries across 50 versions & 3 rubygems