Name: llnl-hires-timers
Owner: Lawrence Livermore National Laboratory
Description: C library containing high resolution timer implementation for several platforms.
Created: 2015-03-19 17:02:03.0
Updated: 2017-06-23 13:20:40.0
Pushed: 2016-08-02 22:51:52.0
Homepage: null
Size: 197
Language: CMake
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This is the llnl-hires-timers library, a library to support platform-specific
high-resolution timers by a platform-independent c function-call: get_time_ns()
.
At compile time the best available timer at your platform will be selected and the platform-specific call to get the best timer will be used to return the timer value in nanoseconds.
To build, you need to use cmake. We recommend that you build out of source. That is, you should make a directory to build in first.
r build
uild
e ..
You can use llnl-hires-timers by including hires-timers.h
and calling the following
function:
ng_t get_time_ns();
timing_t
is defined as:
def unsigned long long timing_t;
At compile-time you should link (static or dynamic) against libhires-timers with
-lhires-timers
.
See the LICENSE file for license and distribution information.