Sha256: 75afed375588e1d62a0a7dd76da3f5b404fbe396d3af14221a05477399dbec89
Contents?: true
Size: 577 Bytes
Versions: 13
Compression:
Stored size: 577 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 */ 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
13 entries across 13 versions & 2 rubygems