![]() |
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <SystemClock.h>
Public Member Functions | |
EndTime ()=default | |
EndTime (unsigned int millisecondsIntoTheFuture) | |
void | Set (unsigned int millisecondsIntoTheFuture) |
bool | IsTimePast () const |
unsigned int | MillisLeft () const |
void | SetExpired () |
void | SetInfinite () |
bool | IsInfinite (void) const |
unsigned int | GetInitialTimeoutValue (void) const |
unsigned int | GetStartTime (void) const |
Static Public Attributes | |
static const unsigned int | InfiniteValue = std::numeric_limits<unsigned int>::max() |
DO NOT compare the results from SystemClockMillis() to an expected end time that was calculated by adding a number of milliseconds to some start time. The reason is because the SystemClockMillis could wrap. Instead use this class which uses differences (which are safe across a wrap).
|
inlinedefault |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |