maxon.TimeValue¶
Description¶
The maxon.TimeValue class encapsulates a timer value.
Methods Signature¶
Gets the time value in seconds from the instance. |
|
|
Set the time value in seconds for the instance. |
|
Adds a time value in seconds to the current time. |
|
Initializes the time object with a values in seconds. |
|
Adds a time in seconds to the current time. |
|
Returns the string representation of the instance as the time value in seconds. |
|
|
|
Return str(self). |
|
Subtracts a time value in seconds from the current time. |
Methods Definition¶
-
TimeValue.GetSeconds()¶ Gets the time value in seconds from the instance.
- Returns
The time value in seconds.
- Return type
int
-
TimeValue.SetSeconds(seconds)¶ Set the time value in seconds for the instance.
- Parameters
seconds (float) – The value to set.
-
TimeValue.__add__(b)¶ Adds a time value in seconds to the current time.
- Parameters
b (
maxon.TimeValue) – The other time.
-
TimeValue.__init__(seconds)¶ Initializes the time object with a values in seconds.
- Parameters
seconds (float) – The number of seconds to initalize the time object with.
-
TimeValue.__radd__(b)¶ Adds a time in seconds to the current time.
- Parameters
b (
maxon.TimeValue) – The other time.
-
TimeValue.__repr__()¶ Returns the string representation of the instance as the time value in seconds.
- Return type
str
-
TimeValue.__rsub__(b)¶
-
TimeValue.__str__()¶ Return str(self).
-
TimeValue.__sub__(b)¶ Subtracts a time value in seconds from the current time.
- Parameters
b (
maxon.TimeValue) – The other time.