Converts the timeout (given as the number of specified time units) to the model time units. You define the timeout using the function arguments: first, you pass the value as the value argument, and then specify the time units using the second argument, units.
For example, the model time units in your model are minutes. In this case the function call
toModelTime(195, SECOND)
will return 195/60 = 3.25
Name |
Description |
value |
The time value in the given time units (you specify the time units using the second argument, units). |
units |
Defines the time units. Possible values: MILLISECOND SECOND MINUTE HOUR DAY WEEK MONTH YEAR |
Type |
Description |
double |
The converted value in model time units. |