aboutsummaryrefslogtreecommitdiff
path: root/include/BH/Timer.h
blob: 51ab0de07d74f581f8a04440719abe44873c326a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef BH_TIMER_H
#define BH_TIMER_H


#include "Common.h"


typedef struct BH_Timer BH_Timer;


BH_Timer *BH_TimerNew(void);


void BH_TimerFree(BH_Timer *timer);


int BH_TimerIsMonotonic(BH_Timer *timer);


void BH_TimerStart(BH_Timer *timer);


int64_t BH_TimerRestart(BH_Timer *timer);


int64_t BH_TimerMilliseconds(BH_Timer *timer);


int64_t BH_TimerNanoseconds(BH_Timer *timer);


#endif /* BH_TIMER_H */