Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/joshdk/ticktock

A handy wrapper around the high-precision time stamp counter.
https://github.com/joshdk/ticktock

Last synced: about 4 hours ago
JSON representation

A handy wrapper around the high-precision time stamp counter.

Awesome Lists containing this project

README

        

ticktock
========

A handy wrapper around the high-precision [time stamp counter](https://en.wikipedia.org/wiki/Time_Stamp_Counter).

Usage
-----

```c
// include the header
#include "ticktock.h"
```

```c
// start a timer
tick();
// some code to be timed...
unsigned long long int delta = tock();
```

Notes
-----

* Compile using gcc with the `-std=c99` flag.