Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yzhong52/simpletimer
A lightweight Timer class in C/C++. Feasible for simple profiling. Compatible with Mac, Linux and Windows.
https://github.com/yzhong52/simpletimer
c-plus-plus profiler timer
Last synced: 2 days ago
JSON representation
A lightweight Timer class in C/C++. Feasible for simple profiling. Compatible with Mac, Linux and Windows.
- Host: GitHub
- URL: https://github.com/yzhong52/simpletimer
- Owner: yzhong52
- Created: 2014-03-29T20:20:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2017-06-25T15:30:12.000Z (over 7 years ago)
- Last Synced: 2023-08-20T17:45:21.581Z (about 1 year ago)
- Topics: c-plus-plus, profiler, timer
- Language: C++
- Homepage:
- Size: 19.5 KB
- Stars: 16
- Watchers: 4
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Timer
======A lightweight Timer class in C/C++. Feasible for simple profiling. Compatible with Mac, Linux and Windows.
Usage
======Sample Code:
// Computing PI
// Reference: http://mathworld.wolfram.com/PiFormulas.html
double func_PI( int n ) {
Timer::begin( "Compute Pi" );double res = 0;
for( int k=1; k