ProcessInfo

class ProcessInfo : NSObject

This extesion adds some useful functions to ProcessInfo.

  • Returns system uptime.

    Declaration

    Swift

    public static func uptime() -> TimeInterval

    Return Value

    eturns system uptime.

  • Returns sysyem uptime as Date.

    Declaration

    Swift

    public static func uptimeDate() -> Date

    Return Value

    Returns sysyem uptime as Date.