ResourceAccounting.usage

ResourceUsage usage(size_t watcherCount, size_t timerCount) const @safe nothrow @nogc

Get current resource usage.

Parameters

watcherCountCurrent number of active watchers
timerCountCurrent number of active timers

Returns

Snapshot of current resource usage