get time untile another time point
| 13 | |
| 14 | //! get time untile another time point |
| 15 | double time_until_secs(const TimeSpec& end) const { |
| 16 | // cast to int to avoid softfloat on 32bit platforms |
| 17 | return static_cast<int>(end.sec - sec) + |
| 18 | static_cast<int>(end.nsec - nsec) * 1e-9; |
| 19 | } |
| 20 | }; |
| 21 | |
| 22 | template <class TimerTrait> |
no outgoing calls
no test coverage detected