aboutsummaryrefslogtreecommitdiffstats
path: root/src/wiring/time.h
blob: 694545b2db352ca0abf4c2ef749e19bcd83e2f5d (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
#ifndef _TIME_H
#define _TIME_H

#include <inttypes.h>

#ifdef __cplusplus
extern "C"{
#endif
/* Returns time since boot in milliseconds  */
uint32_t millis(void);

/* Time in microseconds since boot  */
uint32_t micros(void);

/* Delay for ms milliseconds  */
void delay(unsigned long ms);

/* Delay for us microseconds  */
void delayMicroseconds(uint32_t us);

#ifdef __cplusplus
} // extern "C"
#endif


#endif