UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

19 lines 714 B
/** * * @example * const metrics = new MetricCollection(); // get a metrics collection * * // ... * MetricCollectionConsoleMonitor.from(metrics).start(); // from now on all metric stats will be printed in console every few seconds */ export class MetricCollectionConsoleMonitor { /** * * @param {MetricCollection} metrics * @param {number} [timeout_seconds] how frequently should stats be printed? In seconds. * @returns {PeriodicConsolePrinter} */ static from(metrics: MetricCollection, timeout_seconds?: number): PeriodicConsolePrinter; } import { PeriodicConsolePrinter } from "./PeriodicConsolePrinter.js"; //# sourceMappingURL=MetricCollectionConsoleMonitor.d.ts.map