Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-r committed May 17, 2019
1 parent cffd4e3 commit f070685
Show file tree
Hide file tree
Showing 5 changed files with 4,358 additions and 90 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const uuidv4 = require('uuid/v4');
const regexparam = require('regexparam');
const prettyTime = require('pretty-time');

function hrTimeToMs([s, ns]) {
return s * 1e3 + ns * 1e-6; // convert to ms
}
const { hrTimeToMs } = require('./utils');

function initMiddleware(opts = {}) {
const stats = {
Expand Down
Loading

0 comments on commit f070685

Please sign in to comment.