summaryrefslogtreecommitdiffstats
path: root/test/timer.h
blob: 3367367c8e94fa1030691b9cc9513711adce2f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef TIMER_H
#define TIMER_H

#include <sys/time.h>

typedef struct _Timer Timer;

Timer * timer_new           (void);
void    timer_destroy       (Timer *t);
void    timer_start         (Timer *t);
void    timer_stop          (Timer *t);
double  timer_get_seconds   (Timer *t);

#endif