Project

General

Profile

$uptime » History » Version 2

Per Amundsen, 03/16/2015 08:47 AM

1 1 Per Amundsen
_Added in 1.9.6_
2
3
*$uptime*
4
5 2 Per Amundsen
Returns connection time in seconds for the associated server connection.
6 1 Per Amundsen
7
_Added in 1.9.2_
8
9
*$uptime(mirc|AdiIRC|server|system, N)*
10
11
Returns uptime in milliseconds for the specified item.
12
13
*Parameters*
14
15
mirc|AdiIRC|server|system - Item to retrieve uptime for.
16
N - Optional, if N = 1 returns same format as $duration(), if N = 2 returns same format as $duration() but without seconds, and if N = 3 returns seconds instead of milliseconds.
17
18
*Example*
19
20
<pre>
21
; Current connection uptime
22
//echo -ag Server has been connected $uptime seconds
23
24
; AdiIRC uptime
25
//echo -ag AdiIRC has been connected $uptime(AdiIRC, 1)
26
</pre>