Ben Wiederhake
81079ae616
AK: Fix some overflows/underflows that weren't properly handled
...
Based on #5699 . Closes #5699 .
2021-03-13 10:17:28 +01:00
Tom
183b2e71ba
AK: Take advantage of constexpr in Time and add time conversion methods
...
By making the Time constructor constexpr we can optimize creating a
Time instance from hardcoded values.
Also add more functions to convert between Time and various time units.
2021-03-08 15:29:11 +01:00
Ben Wiederhake
340813e087
AK: Make Time more usable
2021-03-02 08:36:08 +01:00
Ben Wiederhake
bd6be910e5
AK: Implement C++ 'Time' type for easier time-calculations
...
This adds a bunch of code in the hope that other, wrong code can be deleted.
Related to #5315 .
2021-03-02 08:36:08 +01:00