Sha256: 08a7d82ad78807ecba8547fac94e1268278cacc5efdfd1df7b6e1ce7baa2a392
Contents?: true
Size: 812 Bytes
Versions: 9
Compression:
Stored size: 812 Bytes
Contents
/** * hdr_time.h * Written by Michael Barker and released to the public domain, * as explained at http://creativecommons.org/publicdomain/zero/1.0/ */ #ifndef HDR_TIME_H__ #define HDR_TIME_H__ #include <math.h> #include <time.h> #if defined(_WIN32) || defined(_WIN64) || defined(__CYGWIN__) typedef struct hdr_timespec { long tv_sec; long tv_nsec; } hdr_timespec; #else typedef struct timespec hdr_timespec; #endif #ifdef __cplusplus extern "C" { #endif #if defined(_MSC_VER) void hdr_gettime(hdr_timespec* t); #else void hdr_gettime(hdr_timespec* t); #endif void hdr_getnow(hdr_timespec* t); double hdr_timespec_as_double(const hdr_timespec* t); /* Assumes only millisecond accuracy. */ void hdr_timespec_from_double(hdr_timespec* t, double value); #ifdef __cplusplus } #endif #endif
Version data entries
9 entries across 9 versions & 1 rubygems