var %ticks = $ticks
Stuff that happens
echo -a $calc($ticks - %ticks) ms
You can also do, $calc(($ticks - %ticks) / 1000) secs.
If minutes are involved, $gmt($calc(($ticks - %ticks) / 1000),n:ss) $+ . $+ $calc(($ticks - %ticks) % 1000)
This is an excepted standard for timing an event in milliseconds, for lack of anything better. This is by no means super accurate, but pretty accurate... only to a 10th of a second, maybe 100th.
This will display the number of milliseconds it took for Stuff to happen. $ticks is a system timer which more or less updates whenever the system is idle, and represents the number of milliseconds since the system was started... with minor accumulative inaccuracies.
I'm not sure if Khaled as worked out these inaccuracies, I just know he's made a number of changes to how $ticks works internally.
- Raccoon