ObjFW  View Ticket

Ticket UUID: 15bcaa7d13c70fa5648ac97d9063dbcb127c7625
Title: Add helper functions for time intervals
Status: Open Type: Enhancement
Severity: Important Priority: High
Subsystem: Resolution:
Last Modified: 2021-04-17 00:47:27
Version Found In: Milestone: 1.0
User Comments:
js added on 2021-04-17 00:47:27:

Time intervals are currently doubles with no further abstraction. This means that time intervals are added, subtracted and compared using regular double operations. This is problematic on platforms on which double is slow or even non-existent. It would be better to make it transparent and offer helper functions: This would allow to make it struct with two integers in the future.