1 line
27 KiB
JSON
1 line
27 KiB
JSON
|
{"id":"../node_modules/@pushrocks/smarttime/dist/smarttime.classes.hrtmeasurement.js","dependencies":[{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smarttime/ts/smarttime.classes.hrtmeasurement.ts","includedInParent":true,"mtime":499162500000},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/package.json","includedInParent":true,"mtime":1545395695572},{"name":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smarttime/package.json","includedInParent":true,"mtime":1545395356342},{"name":"process","loc":{"line":3,"column":24},"parent":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/@pushrocks/smarttime/dist/smarttime.classes.hrtmeasurement.js","resolved":"/Users/philkunz/gitlab/pushrocks_meta/webdetector/node_modules/process/browser.js"}],"generated":{"js":"\n\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst process = require(\"process\");\n/**\n * easy high resolution time measurement\n */\nclass HrtMeasurement {\n constructor() {\n this.nanoSeconds = null;\n this.milliSeconds = null;\n this._hrTimeStart = null;\n this._hrTimeStopDiff = null;\n this._started = false;\n }\n /**\n * start the measurement\n */\n start() {\n this._started = true;\n this._hrTimeStart = process.hrtime();\n }\n /**\n * stop the measurement\n */\n stop() {\n if (this._started === false) {\n console.log(\"Hasn't started yet\");\n return;\n }\n this._hrTimeStopDiff = process.hrtime(this._hrTimeStart);\n this.nanoSeconds = this._hrTimeStopDiff[0] * 1e9 + this._hrTimeStopDiff[1];\n this.milliSeconds = this.nanoSeconds / 1000000;\n return this;\n }\n /**\n * reset the measurement\n */\n reset() {\n this.nanoSeconds = null;\n this.milliSeconds = null;\n this._hrTimeStart = null;\n this._hrTimeStopDiff = null;\n this._started = false;\n }\n}\nexports.HrtMeasurement = HrtMeasurement;\n","map":{"mappings":[{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":4,"column":0}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":35},"generated":{"line":4,"column":35}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":3,"column":0},"generated":{"line":5,"column":0}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":5,"column":3},"generated":{"line":7,"column":3}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":8,"column":0}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":13},"generated":{"line":8,"column":6}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":27},"generated":{"line":8,"column":20}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":9,"column":4}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":10,"column":8}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":13},"generated":{"line":10,"column":24}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":24},"generated":{"line":10,"column":27}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":28},"generated":{"line":10,"column":31}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":29},"generated":{"line":10,"column":32}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":11,"column":8}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null
|