LLNL/llnl-hires-timers

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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.

r build
uild
e ..

Usage

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.

License

See the LICENSE file for license and distribution information.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.