Function idleTime

Synopsis

#include <src/uvw/loop.h>

Time idleTime() const noexcept

Description

Returns the amount of time the event loop has been idle. The call is thread safe.

Returns
The accumulated time spent idle.

Source

Lines 100-102 in src/uvw/loop.cpp. Line 241 in src/uvw/loop.h.

UVW_INLINE Loop::Time Loop::idleTime() const noexcept {
    return Time{uv_metrics_idle_time(loop.get())};
}





Add Discussion as Guest

Log in