Skip to content

dos_tickcount

Dale Fugier edited this page Jul 1, 2026 · 1 revision

Returns the number of milliseconds since the device booted, excluding any time that the system was suspended. The system "tick count" starts at zero on boot and then counts up from there. Because AutoLISP does not use "unsigned long" integers, the value is returned as a double-precision floating point number.

This function is useful for benchmarking time consuming tasks. Just obtain the tick count immediately before and after the time consuming task. Then, subtract the two values to determine the elapsed time in milliseconds.

Syntax

(dos_tickcount)

Returns

The number of milliseconds as a real, or double-precision floating point, number.

Example

Command: (rtos (dos_tickcount) 2 0)
"12263784"

Clone this wiki locally