timing-module
v1.1.0
Published
CommongJS module which wraps Navigation Time API
Downloads
8
Maintainers
Readme
timing-module
CommonJS module which wraps Navigation Timing API. This module it's actually reusing the timing.js.
How to install
$ npm install timing-module
How to use
var timing = require('timing-module');
API
getTimes()
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]
printTable()
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();
printSimpleTable()
Uses console.table()
to print a summary table of timing information.
timing.printSimpleTable();