blob: 139376d30d366f64de37e7f8bf68a766a3da83f3 [file] [log] [blame]
#ifndef __AOS_TIMEOUT_H_
#define __AOS_TIMEOUT_H_
#include <time.h>
#include <string>
namespace aos {
namespace time {
// Will not be accurate if ms isn't a factor of 1000.
// offset is in us.
void PhasedLoopXMS(int ms, int offset);
// offset is in us.
inline void PhasedLoop10MS(int offset) { PhasedLoopXMS(10, offset); }
} // namespace time
} // namespace aos
#endif