On this page

    os.uptime(): integer
    Returns:integer

    Returns the system uptime in number of seconds.