@basemaps/metrics
    TypeScript icon, indicating that this package has built-in type declarations

    4.11.1 • Public • Published

    @basemaps/metrics

    Simple timing metric tracker for NodeJS

    Usage

     
    import { Metrics } from '@basemaps/metrics';
     
    const metrics = new Metrics();
     
    metrics.start('timer');
    const duration = metrics.end('timer') // 0.1 (in ms)
     
    const allMetrics = metrics.metrics // { timer: 1e6 }
     
     
    // Unfinished
    metrics.start('timer');
     
    metrics.unfinished // ['timer']

    Keywords

    none

    Install

    npm i @basemaps/metrics

    DownloadsWeekly Downloads

    1

    Version

    4.11.1

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • blacha
    • linzds