Documentation

Time::Format

Function

string Time::Format(uint64 time, bool fractions = true, bool forceMinutes = true, bool forceHours = false, bool short = false)

Format a game time (in milliseconds) to its race time representation. For example, 61234 will be "1:01.234".

uint64 time

bool fractions

bool forceMinutes

bool forceHours

bool short

Returns string
string Time::Format(int64 time, bool fractions = true, bool forceMinutes = true, bool forceHours = false, bool short = false)

Format a game time (in milliseconds) to its race time representation. For example, 61234 will be "1:01.234".

int64 time

bool fractions

bool forceMinutes

bool forceHours

bool short

Returns string