TIME Duration
Also called: duration, T#, milliseconds
A duration, counted in milliseconds.
What it does
The type of timer presets and elapsed times. The value is a number of milliseconds.
When to use it
A timer's preset, a duration chosen by the program (MOVE a duration into T1.PT).
| Size | 32 bits |
|---|---|
| Possible values | T#-24d20h31m23s648ms … T#24d20h31m23s647ms / -2147483648 … 2147483647 |
| Starting value | T#0ms / 0 |
| Constants (examples) | T#500ms, T#2s500ms, T#1m30s / 500, 2500, 90000 |
| Size | 32 bits |
|---|---|
| Possible values | T#-24d20h31m23s648ms … T#24d20h31m23s647ms |
| Starting value | T#0ms |
| Constants (examples) | T#500ms, T#2s500ms, T#1m30s |
| Size | 32 bits |
|---|---|
| Possible values | -2147483648 … 2147483647 |
| Starting value | 0 |
| Constants (examples) | 500, 2500, 90000 |
Behaviour in detail
- European style: T#2s500ms (2.5s or 2500ms can be typed too). American style: a plain number of milliseconds (2500).
- A timer treats a negative duration as 0.
European (IEC) and American styles
European style: a real duration type, written T#3s.
American style: no duration type, a timer's preset is an integer in milliseconds (3000). Here it is the same type shown two ways.