🟨 Time handling (relative, absolute, high resolution)
Library contains classes to measure time and compute or measure time intervals.
Class | Description |
---|---|
SC::Time::Absolute | Absolute time as realtime or monotonically increasing clock. |
SC::Time::Monotonic | Represent monotonically increasing time (use Monotonic::now for current time) |
SC::Time::Realtime | Represents a realtime clock in milliseconds since epoch (use Realtime::now for current time) |
SC::Time::Relative | Interval of time represented with 64 bit double precision float. |
SC::Time::HighResolutionCounter | An high resolution time counter. |
🟨 MVP
This library is in MVP state but it doesn't have a clear roadmap.
Absolute time as realtime or monotonically increasing clock.
Parses local time to a Parsed structure.
[out] | result | The Parsed structure holding current date / time |
true
if time has been parsed successfully Represent monotonically increasing time (use Monotonic::now for current time)
Obtain time according to monotonic clock.
Represents a realtime clock in milliseconds since epoch (use Realtime::now for current time)
Obtain time according to realtime clock.
Interval of time represented with 64 bit double precision float.
An high resolution time counter.
Sets HighResolutionCounter to current instant
Example:
Subtracts another HighResolutionCounter from this one, returning an approximate Relative.
other | The HighResolutionCounter to be subtracted |
Check if this HighResolutionCounter is later or equal to another HighResolutionCounter.
other | The HighResolutionCounter to be used in the comparison |
true
if this HighResolutionCounter is later or equal to another HighResolutionCounter Some relevant blog posts are:
🟩 Usable
🟦 Complete Features:
💡 Unplanned Features: