NodeServer.uptime

Gets the server's uptime as a Duration instance with milliseconds precision. The count starts when the node is duccessfully connected with the hub.

class NodeServer
shared @property @safe
Duration
uptime
()

Examples

writeln("The server is online from ", server.uptime.minutes, " minutes");

ulong m, s;
server.uptime.split!("minutes", "seconds")(m, s);
writeln("The server is online from ", m, " minutes and ", s, " seconds");

Meta