def runtime(format=False):
    """
    Get the total runtime of the server since first start (minus
    downtimes)

    Args:
        format (bool, optional): Format into a time representation.

    Returns:
        time (float or tuple): The runtime or the same time split up
            into time units.

    """
    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