| 342 | bool WallDuration::sleep() const { return okvis_wallsleep(sec, nsec); } |
| 343 | |
| 344 | void normalizeSecNSec(uint64_t& sec, uint64_t& nsec) { // NOLINT |
| 345 | uint64_t nsec_part = nsec % 1000000000UL; |
| 346 | uint64_t sec_part = nsec / 1000000000UL; |
| 347 | |
| 348 | if (sec_part > UINT_MAX) throw std::runtime_error("Time is out of dual 32-bit range"); |
| 349 | |
| 350 | sec += sec_part; |
| 351 | nsec = nsec_part; |
| 352 | } |
| 353 | |
| 354 | void normalizeSecNSec(uint32_t& sec, uint32_t& nsec) { // NOLINT |
| 355 | uint64_t sec64 = sec; |