项目作者: HighPerLab

项目描述 :
C/C++ interface/abstraction to system/hardware clocks for high-precision time measurements
高级语言: C
项目地址: git://github.com/HighPerLab/c-timer-lib.git
创建时间: 2015-08-21T06:41:04Z
项目社区:https://github.com/HighPerLab/c-timer-lib

开源协议:The Unlicense

下载


C Timer Header

Created for a research project to simplify the process of measuring runtimes.

This library encapsulates the clock_gettime function and provides a
timing structure to measure time intervals. A few nice functions are provided
that can start and stop the timer and return the elapsed time in units of
seconds, milliseconds, microseconds, and nanoseconds.

The developer also has the option to select the system clock to be used and
also activate debugging facilities.

Note for GCC <= 4.4

For use with GCC <= 4.4, remember to compile with -std=gnu99 or there will be
errors regarding using the clock_gettime function.

License

This work is unlicensed and part of the public domain, as per
The Unlicense license.