blob: d231449b574399eeca591c11f48b10ca32cd3d91 [file] [log] [blame]
Brian3afd6fc2014-04-02 20:41:49 -07001#ifndef AOS_COMMON_UTIL_PHASED_LOOP_H_
2#define AOS_COMMON_UTIL_PHASED_LOOP_H_
brians343bc112013-02-10 01:53:46 +00003
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
Brian3afd6fc2014-04-02 20:41:49 -070019#endif // AOS_COMMON_UTIL_PHASED_LOOP_H_