Thanks to visit codestin.com
Credit goes to github.com

Skip to content

LLNL/llnl-hires-timers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLNL hires-timers

Build Status

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.

Building

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.

mkdir build
cd build
cmake ..
make

Usage

You can use llnl-hires-timers by including hires-timers.h and calling the following function:

timing_t get_time_ns();

timing_t is defined as:

typedef unsigned long long timing_t;

At compile-time you should link (static or dynamic) against libhires-timers with -lhires-timers.

License

See the LICENSE file for license and distribution information.

About

C library containing high resolution timer implementation for several platforms.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •