$uptime
From Scriptwiki
Returns uptime in milliseconds for specified item.
$uptime(mirc | server | system, N)
N is an optional parameter, which can either be 1, 2 or 3:
N | explanation |
1 | returns same format as $duration |
2 | returns same format as $duration but without seconds |
3 | returns seconds instead of milliseconds |
Example
echo -a $uptime(system) milliseconds - $uptime(system,1) - $uptime(system,2) - $uptime(system,3) seconds
This example would e.g. echo: 32225944 milliseconds - 8hrs 57mins 5secs - 8hrs 57mins - 32225 seconds