Skip to content

TimeUtils

Functions

Name
longGetRealTime()<br>Gets real time.
longGetTime()<br>Gets the time.
long intminutesSinceEpoch()
std::stringminutesSinceEpochToString(long int minutes)
long intstringToMinutesSinceEpoch(std::string str)
floatTimeDiff(long time1, long time2)<br>Time difference in seconds.

Functions Documentation

function GetRealTime

cpp
long GetRealTime()
long GetRealTime()

Gets real time.

Return: The real time.

Synonym of GetTime()

function GetTime

cpp
long GetTime()
long GetTime()

Gets the time.

Return: The time.

Synonym of GetRealTime()

function minutesSinceEpoch

cpp
long int minutesSinceEpoch()
long int minutesSinceEpoch()

function minutesSinceEpochToString

cpp
std::string minutesSinceEpochToString(
    long int minutes
)
std::string minutesSinceEpochToString(
    long int minutes
)

function stringToMinutesSinceEpoch

cpp
long int stringToMinutesSinceEpoch(
    std::string str
)
long int stringToMinutesSinceEpoch(
    std::string str
)

function TimeDiff

cpp
float TimeDiff(
    long time1,
    long time2
)
float TimeDiff(
    long time1,
    long time2
)

Time difference in seconds.

Parameters:

  • time1 The first time in [ms].
  • time2 The second time in [ms].

Return: A float.


Updated on 2024-11-06 at 20:16:53 +0000