Package Exports
- nano-performance
- nano-performance/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nano-performance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nano-performance
An extremely lightweight node module that measures execution time in nanoseconds.
Created by Agilit-e
Installation
Using npm:
npm install nano-performance
Display output in milliseconds (default):
import { timeStart, timeEnd } from "nano-performance";
timeStart("Test");
setTimeout(function () {
timeEnd("Test");
}, 10);
Output = Test: 11.086301 ms
Display output in nanoseconds:
import { timeStart, timeEnd } from "nano-performance";
timeStart("Test");
setTimeout(function () {
timeEnd("Test", "ns");
}, 10);
Output = Test: 11086301 ns