CommonJS module which wraps Navigation Timing API. This module it's actually reusing the timing.js.
$ npm install timing-module
var timing = require('timing-module');
Outputs extended measurements using Navigation Timing API.
- @param Object opts Options (simple (bool) - opts out of full data view)
- @return Object measurements
timing.getTimes(); // [object Object]
Uses console.table()
to print a complete table of timing information.
- @param Object opts Options (simple (bool) - opts out of full data view)
timing.printTable();
Uses console.table()
to print a summary table of timing information.
timing.printSimpleTable();