$uptime

From Scriptwiki
Jump to: navigation, search

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:

Nexplanation
1returns same format as $duration
2returns same format as $duration but without seconds
3returns 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