FIXME: Refactor to always use ptime instead of ticks?
| 21 | |
| 22 | // FIXME: Refactor to always use ptime instead of ticks? |
| 23 | static time_duration ticksToPosix(int64_t ticks) |
| 24 | { |
| 25 | int64_t tickTotal = std::round(static_cast<double>(ticks * time_duration::ticks_per_second()) / |
| 26 | TICKS_PER_SECOND); |
| 27 | return time_duration(0, 0, 0, tickTotal); |
| 28 | } |
| 29 | |
| 30 | GameTime::GameTime(uint64_t ticks) : ticks(ticks){}; |
| 31 |