blob: 139376d30d366f64de37e7f8bf68a766a3da83f3 [file] [log] [blame]
brians343bc112013-02-10 01:53:46 +00001#ifndef __AOS_TIMEOUT_H_
2#define __AOS_TIMEOUT_H_
3
4#include <time.h>
5#include <string>
6
7namespace aos {
8namespace time {
9
10// Will not be accurate if ms isn't a factor of 1000.
11// offset is in us.
12void PhasedLoopXMS(int ms, int offset);
13// offset is in us.
14inline void PhasedLoop10MS(int offset) { PhasedLoopXMS(10, offset); }
15
16} // namespace time
17} // namespace aos
18
19#endif