1.1.0 • Published 10 years ago

timing-module v1.1.0

Weekly downloads
17
License
-
Repository
github
Last release
10 years ago

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();