world.GetConnectDuration
Returns the number of seconds this world has been connected.
Prototype
long GetConnectDuration();
Description
Returns the number of seconds the world has been connected, or zero if the world is not currently connected.
VBscript example
world.note world.GetConnectDuration
Jscript example
world.note(world.GetConnectDuration());
PerlScript example
$world->note($world->GetConnectDuration());
Python example
world.note(world.GetConnectDuration)
Lua example
Note(GetConnectDuration())
Return value
The number of seconds this world has been connected.
Related topic
See also
| Function | Description |
|---|---|
| GetLineCount | Gets count of lines received |
| GetReceivedBytes | Returns the number of bytes received from the world |
| GetScriptTime | Returns the amount of time spent in script routines |
| GetSentBytes | Returns the number of bytes sent to the world |
| IsConnected | Tests to see if the world is connected to the MUD server |