Skip to content
Snippets Groups Projects
Commit e4858853 authored by Julian Oes's avatar Julian Oes
Browse files

platforms: remove unused Rate class

parent d1b44e5d
No related branches found
No related tags found
No related merge requests found
......@@ -69,23 +69,4 @@ inline void usleep(uint64_t sleep_interval) { }
*/
#endif
class Rate
{
public:
/**
* Construct the Rate object and set rate
* @param rate_hz rate from which sleep time is calculated in Hz
*/
explicit Rate(unsigned rate_hz) { sleep_interval = 1e6 / rate_hz; }
/**
* Sleep for 1/rate_hz s
*/
void sleep() { usleep(sleep_interval); }
private:
uint64_t sleep_interval;
};
} // namespace px4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment