|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
304 bytes
|
| Line | |
|---|
| 1 | "use strict";
|
|---|
| 2 |
|
|---|
| 3 | // Browserify's process implementation doesn't have hrtime, and this package is small so not much of a burden for
|
|---|
| 4 | // Node.js users.
|
|---|
| 5 | const hrtime = require("browser-process-hrtime");
|
|---|
| 6 |
|
|---|
| 7 | function toMS([sec, nanosec]) {
|
|---|
| 8 | return sec * 1e3 + nanosec / 1e6;
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | module.exports = { hrtime, toMS };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.