-
WikiChip
WikiChip
-
Architectures
Popular x86
-
Intel
- Client
- Server
- Big Cores
- Small Cores
-
AMD
Popular ARM
-
ARM
- Server
- Big
- Little
-
Cavium
-
Samsung
-
-
Chips
Popular Families
-
Ampere
-
Apple
-
Cavium
-
HiSilicon
-
MediaTek
-
NXP
-
Qualcomm
-
Renesas
-
Samsung
-
The $ticks identifier retrieves the number of milliseconds that have elapsed since the system was started. $ticks is most often used in benchmarking.
Details
The $ticks identifier is used to retrieves the current system uptime in milliseconds. The identifier is limited to the resolution of the system timer which is typically in the range of 10 milliseconds to 16 milliseconds. Prior to mIRC version 7.33 the $ticks identifier used the GetTickCount() function which meant the value $ticks returned would wrap around to zero after 49.71 days. In 7.33 the $ticks identifier was switched to use the GetTickCount64() function, eliminating this issue (which wraps around once every 584.9 million years).
Synopsis
$ticks
Example
; time how long it takes to execute an empty loop 10,000 times. Alias example { var %ticks = $ticks, %x = 10000 while (%x) { dec %x } echo -a 10,000 empty iterations took: $calc($ticks - %ticks) ms. }
Compatibility
Added: mIRC v4.7
Added On: 09/12/96
Note: Individual arguments and properties were not taken into consideration.