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

Version Path
hitimes-1.3.1-x64-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.1-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.1-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.1 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.0-x64-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.0-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.0-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.3.0 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.6-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.6-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.6 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.5-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.5-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.5 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.4-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.4-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.4 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.3-x86-mingw32 ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.3-java ext/hitimes/c/hitimes_instant_windows.c
hitimes-1.2.3 ext/hitimes/c/hitimes_instant_windows.c