

def runtime(format=False):
    '\n    Get the total runtime of the server since first start (minus\n    downtimes)\n\n    Args:\n        format (bool, optional): Format into a time representation.\n\n    Returns:\n        time (float or tuple): The runtime or the same time split up\n            into time units.\n\n    '
    runtime = (SERVER_RUNTIME + (time() - SERVER_RUNTIME_LAST_UPDATED))
    if format:
        return _format(runtime, 31536000, 2628000, 604800, 86400, 3600, 60)
    return runtime

dataset/ETHPy150Open evennia/evennia/evennia/utils/gametime.py runtime/original