uptime

fnDuration uptime() @trusted

Gets system uptime.

Returns

Duration representing how long the system has been running.

Example:

auto up = uptime();
writeln("System uptime: ", up);