1 line
14 KiB
JSON
1 line
14 KiB
JSON
{"id":"peDS","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":1545395749058},{"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\";Object.defineProperty(exports,\"__esModule\",{value:!0});const t=require(\"process\");class s{constructor(){this.nanoSeconds=null,this.milliSeconds=null,this._hrTimeStart=null,this._hrTimeStopDiff=null,this._started=!1}start(){this._started=!0,this._hrTimeStart=t.hrtime()}stop(){if(!1!==this._started)return this._hrTimeStopDiff=t.hrtime(this._hrTimeStart),this.nanoSeconds=1e9*this._hrTimeStopDiff[0]+this._hrTimeStopDiff[1],this.milliSeconds=this.nanoSeconds/1e6,this;console.log(\"Hasn't started yet\")}reset(){this.nanoSeconds=null,this.milliSeconds=null,this._hrTimeStart=null,this._hrTimeStopDiff=null,this._started=!1}}exports.HrtMeasurement=s;","map":{"mappings":[{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":0}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":13}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":20}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":35}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":43}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":56}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":57}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":64}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":0},"generated":{"line":2,"column":68}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":35},"generated":{"line":2,"column":74}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":35},"generated":{"line":2,"column":76}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":1,"column":35},"generated":{"line":2,"column":84}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":2,"column":95}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":13},"generated":{"line":2,"column":101}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":2,"column":103}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":2},"generated":{"line":2,"column":117}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":13},"generated":{"line":2,"column":122}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":7,"column":24},"generated":{"line":2,"column":134}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":8,"column":2},"generated":{"line":2,"column":139}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":8,"column":14},"generated":{"line":2,"column":144}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":8,"column":25},"generated":{"line":2,"column":157}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":9,"column":10},"generated":{"line":2,"column":162}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":9,"column":22},"generated":{"line":2,"column":167}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":9,"column":25},"generated":{"line":2,"column":180}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":10,"column":10},"generated":{"line":2,"column":185}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":10,"column":25},"generated":{"line":2,"column":190}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":10,"column":28},"generated":{"line":2,"column":206}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":11,"column":10},"generated":{"line":2,"column":211}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":11,"column":18},"generated":{"line":2,"column":216}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":11,"column":30},"generated":{"line":2,"column":226}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":16,"column":2},"generated":{"line":2,"column":228}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":17,"column":4},"generated":{"line":2,"column":236}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":17,"column":9},"generated":{"line":2,"column":241}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":17,"column":20},"generated":{"line":2,"column":251}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":18,"column":4},"generated":{"line":2,"column":253}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":18,"column":9},"generated":{"line":2,"column":258}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":18,"column":24},"generated":{"line":2,"column":271}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":18,"column":32},"generated":{"line":2,"column":273}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":24,"column":2},"generated":{"line":2,"column":282}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":25,"column":4},"generated":{"line":2,"column":289}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":25,"column":26},"generated":{"line":2,"column":293}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":25,"column":8},"generated":{"line":2,"column":297}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":25,"column":13},"generated":{"line":2,"column":302}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":32,"column":4},"generated":{"line":2,"column":311}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":4},"generated":{"line":2,"column":318}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":9},"generated":{"line":2,"column":323}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":27},"generated":{"line":2,"column":339}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":35},"generated":{"line":2,"column":341}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":42},"generated":{"line":2,"column":348}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":29,"column":47},"generated":{"line":2,"column":353}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":4},"generated":{"line":2,"column":367}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":9},"generated":{"line":2,"column":372}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":49},"generated":{"line":2,"column":384}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":23},"generated":{"line":2,"column":388}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":28},"generated":{"line":2,"column":393}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":44},"generated":{"line":2,"column":409}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":55},"generated":{"line":2,"column":412}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":60},"generated":{"line":2,"column":417}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":30,"column":76},"generated":{"line":2,"column":433}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":31,"column":4},"generated":{"line":2,"column":436}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":31,"column":9},"generated":{"line":2,"column":441}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":31,"column":24},"generated":{"line":2,"column":454}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":31,"column":29},"generated":{"line":2,"column":459}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":31,"column":43},"generated":{"line":2,"column":471}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":32,"column":11},"generated":{"line":2,"column":475}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":26,"column":6},"generated":{"line":2,"column":480}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":26,"column":14},"generated":{"line":2,"column":488}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":26,"column":18},"generated":{"line":2,"column":492}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":38,"column":2},"generated":{"line":2,"column":514}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":39,"column":4},"generated":{"line":2,"column":522}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":39,"column":9},"generated":{"line":2,"column":527}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":39,"column":23},"generated":{"line":2,"column":539}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":40,"column":4},"generated":{"line":2,"column":544}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":40,"column":9},"generated":{"line":2,"column":549}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":40,"column":24},"generated":{"line":2,"column":562}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":41,"column":4},"generated":{"line":2,"column":567}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":41,"column":9},"generated":{"line":2,"column":572}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":41,"column":24},"generated":{"line":2,"column":585}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":42,"column":4},"generated":{"line":2,"column":590}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":42,"column":9},"generated":{"line":2,"column":595}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":42,"column":27},"generated":{"line":2,"column":611}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":43,"column":4},"generated":{"line":2,"column":616}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":43,"column":9},"generated":{"line":2,"column":621}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":43,"column":20},"generated":{"line":2,"column":631}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":6,"column":0},"generated":{"line":2,"column":634}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":642}},{"source":"../ts/smarttime.classes.hrtmeasurement.ts","name":null,"original":{"line":45,"column":1},"generated":{"line":2,"column":657}}],"sources":{"../ts/smarttime.classes.hrtmeasurement.ts":"import * as process from 'process';\n\n/**\n * easy high resolution time measurement\n */\nexport class HrtMeasurement {\n nanoSeconds: number = null;\n milliSeconds: number = null;\n private _hrTimeStart = null;\n private _hrTimeStopDiff = null;\n private _started: boolean = false;\n\n /**\n * start the measurement\n */\n start() {\n this._started = true;\n this._hrTimeStart = process.hrtime();\n }\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 /**\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}\n"},"lineCount":null}},"hash":"fa3a95443fb3af77db87b94e39ad6a78","cacheData":{"env":{}}} |