world.GetConnectDuration

MUSHclient script function (Method)

Returns the number of seconds this world has been connected.

Prototype

long GetConnectDuration();

Data type meanings

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

Information

See also

FunctionDescription
GetLineCountGets count of lines received
GetReceivedBytesReturns the number of bytes received from the world
GetScriptTimeReturns the amount of time spent in script routines
GetSentBytesReturns the number of bytes sent to the world
IsConnectedTests to see if the world is connected to the MUD server