Skip to main content

Data type: TIME, LTIME

The time data type TIME is treated internally as DWORD. In the case of TIME, this leads to a resolution in milliseconds.

The time data type LTIME is treated internally as LWORD. In the case of LTIME, this leads to a resolution in nanoseconds. You can use the data type LTIME as a time base for high-resolution timer. A high-resolution timer has a resolution in nanoseconds.

Data Type

Lower Limit

Upper Limit

Memory

Resolution

Description

TIME

T#0MS

T#49D17H2M47S295MS

32-bit

Milliseconds

Syntax: TIME#xDxHxMxSxMS

Syntax: TIME#xdxhxmxsxms

Syntax: T#xDxHxMxSxMS

Syntax: T#xdxhxmxsxms

LTIME

LTIME#0NS

LTIME#213503D23H34M33S709MS551US615NS

64 bit

Nanoseconds

Syntax: LTIME#xDxHxMxSxMSxUSxNS

Syntax: LTIME#xdxhxmxsxmsxusxna

Example 208. Example
T#1D2H3M4S
T#49D17H2M47S295MS
LTIME#1000D15H23M12S34ms2us44ns
LTIME#213503D23H34M33S709MS551US615NS


For more information, see: Constant: TIME, LTIME, TIME, LTIMETime Conversion