On this page

    M

    process.threadCpuUsage

    History
    process.threadCpuUsage(previousValue?): Object
    Attributes
    previousValue:Object
    A previous return value from calling process.threadCpuUsage()
    Returns:Object
    user:integer
    system:integer

    The process.threadCpuUsage() method returns the user and system CPU time usage of the current worker thread, in an object with properties user and system, whose values are microsecond values (millionth of a second).

    The result of a previous call to process.threadCpuUsage() can be passed as the argument to the function, to get a diff reading.