|
rstd 0.1.0
|
A measurement of the system clock, useful for talking to external entities like the filesystem or other processes. More...
Public Member Functions | |
| auto | duration_since (SystemTime other) const noexcept -> Result< Duration, Duration > |
Returns the duration since an earlier SystemTime, or an Err if other is later. | |
| auto | elapsed () const noexcept -> Result< Duration, Duration > |
| Returns the elapsed time since this SystemTime was created. | |
| auto | checked_add (Duration dur) const noexcept -> Option< SystemTime > |
| Returns Some(time) if the addition does not overflow, or None otherwise. | |
| auto | checked_sub (Duration dur) const noexcept -> Option< SystemTime > |
| Returns Some(time) if the subtraction does not underflow, or None otherwise. | |
Static Public Member Functions | |
| static auto | now () noexcept -> SystemTime |
| Returns the system time corresponding to "now". | |
A measurement of the system clock, useful for talking to external entities like the filesystem or other processes.
|
inlineexportnoexcept |
Returns Some(time) if the addition does not overflow, or None otherwise.
| dur | The duration to add. |
|
inlineexportnoexcept |
Returns Some(time) if the subtraction does not underflow, or None otherwise.
| dur | The duration to subtract. |
|
inlineexportnoexcept |
Returns the duration since an earlier SystemTime, or an Err if other is later.
| other | The earlier system time. |