Astaroth  2.2
timer_hires.h File Reference

High-resolution timer. More...

#include <stdio.h>
#include <time.h>
+ Include dependency graph for timer_hires.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef struct timespec Timer
 

Detailed Description

High-resolution timer.

Usage: Timer t; timer_reset(&t); timer_diff_nsec(t);

If there are issues, try compiling with -std=gnu11 -lrt

Typedef Documentation

◆ Timer

typedef struct timespec Timer