GitXplorerGitXplorer
y

performancenow

public
4 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0c6ba887f7ccfd087c5d446b8a458770853368af

Update README.md

yyefremov committed 8 years ago
Unverified
9f3660baf00d6262851a0579637768b9a476ff82

Add CONTRIBUTING.md (#3)

yyefremov committed 8 years ago
Unverified
8f1719b45dbbced9627e6d2b0ad1c200659f8aac

Update README.md

yyefremov committed 8 years ago
Unverified
a14466ce796f99108088af88249ee26fb951220e

Update README.md

yyefremov committed 8 years ago
Unverified
3266b57d2b31120edc41a84e2326776381c8e0d0

Bump package version

yyefremov committed 8 years ago
Unverified
3af3ba0ad7be646e14f6a7550550bd06994d7b76

Integrate Travis CI (#1)

yyefremov committed 8 years ago

README

The README file for this repository.

performancenow

npm version Build Status

Simple performance.now() polyfill for old browsers and node.

Installation

$ npm install performancenow

API

Make sure to import performancenow module in your application entrypoint, it will make a time stamp to measure against on every subsequent call.

import 'performancenow';

Then just import as a usual module wherever you need it.

import now from 'performancenow';

let timestamp = now();
// => 15.02

To polyfill performance.now() function.

(function (global) {
  global.performance = global.performance || {};
  global.performance.now = global.performance.now || require('performancenow');
}).call(this);

Running tests

$ npm test

License

MIT