MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / get_nanotime

Function get_nanotime

inst/include/Rcpp/Benchmark/Timer.h:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49#if defined(_WIN32)
50
51 inline nanotime_t get_nanotime(void) {
52 LARGE_INTEGER time_var, frequency;
53 QueryPerformanceCounter(&time_var);
54 QueryPerformanceFrequency(&frequency);
55
56 /* Convert to nanoseconds */
57 return 1.0e9 * time_var.QuadPart / frequency.QuadPart;
58 }
59
60#elif defined(__APPLE__)
61

Callers 2

TimerMethod · 0.85
nowMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected