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