![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The time class provides high resolution time data.
Get the current time-of-day. The time is the number of seconds since 00:00 hours, Jan 1, 1970 UTC.
Murl.System.Time GetNow()
Get the current time-of-day. The time is the number of seconds since 00:00 hours, Jan 1, 1970 UTC. Guaranteed monotonic behaviour.
Murl.System.Time GetNowMonotonic()
Sets the behaviour of Murl::System::GetNow. Default is false.
SetNowMonotonic(Boolean monotonic)
monotonic | true to force GetNow returning monotonic values |
Get the current tick count. The tick count is the absolute elapsed time since some arbitrary, fixed point in the past.
It is not affected by changes in the system time-of-day clock.
Murl.System.Time GetTickCount()
Get the time from specified seconds.
Murl.System.Time FromSeconds(Integer seconds)
seconds | The number of seconds. |
Get the time from specified milliseconds.
Murl.System.Time FromMilliSeconds(Integer milliSeconds)
milliSeconds | The number of milliseconds. |
Get the time from specified microseconds.
Murl.System.Time FromMicroSeconds(Integer microSeconds)
microSeconds | The number of microseconds. |
Get the time from specified nanoseconds.
Murl.System.Time FromNanoSeconds(Integer nanoSeconds)
nanoSeconds | The number of nanoseconds. |
Get zero time.
Murl.System.Time Zero()
Get infinite time.
Murl.System.Time Infinite()
Get minimum time.
Murl.System.Time Min()
Get maximum time.
Murl.System.Time Max()
The default constructor. The time is set to zero.
Murl.System.Time new()
Constructor taking floating point seconds.
Murl.System.Time new(Number seconds)
seconds | The number of seconds. |
Constructor taking seconds and nanoseconds.
Murl.System.Time new(Integer seconds, Integer nanoSeconds)
seconds | The number of seconds. |
nanoSeconds | The number of nanoseconds. |
Set to the current time-of-day. The time is the number of seconds since 00:00 hours, Jan 1, 1970 UTC.
SetNow()
Set to the current tick count. The tick count is the absolute elapsed time since some arbitrary, fixed point in the past.
It is not affected by changes in the system time-of-day clock.
SetTickCount()
Set to the zero time.
SetZero()
Set to the infinite time.
SetInfinite()
Get the time in floating point seconds.
Number GetDouble()
Set the time from floating point seconds.
SetDouble(Number seconds)
seconds | The time in number of seconds. |
Get the time in integer seconds.
Integer GetSeconds()
Set the time in integer seconds.
SetSeconds(Integer seconds)
seconds | The time in seconds. |
Get the time in milliseconds.
Integer GetMilliSeconds()
Set the time in milliseconds.
SetMilliSeconds(Integer milliSeconds)
milliSeconds | The time in milliseconds. |
Get the time in microseconds.
Integer GetMicroSeconds()
Set the time in microseconds.
SetMicroSeconds(Integer microSeconds)
microSeconds | The time in microseconds. |
Get the time in nanoseconds.
Integer GetNanoSeconds()
Set the time in nanoseconds.
SetNanoSeconds(Integer nanoSeconds)
nanoSeconds | The time in nanoseconds. |
Get the seconds fractional part in milliseconds.
Integer GetMilliSecondsFraction()
Get the seconds fractional part in microseconds.
Integer GetMicroSecondsFraction()
Get the seconds fractional part in nanoseconds.
Integer GetNanoSecondsFraction()
Check if the time is zero.
Boolean IsZero()
Check if the time is infinite.
Boolean IsInfinite()
Get the string representation of the object.
String ToString()
Converts the object content to a string in a reasonable format.
Addition operator.
Subtraction operator.
Equal to comparison operator.
Less than operator.
Less than or equal to operator.