UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 437 B
import{millisToHrTime as i,otperformance as t}from"@opentelemetry/core";var o=function(o){void 0===o&&(o=t);var e=this;this.epochMillisFromOriginOffset=function(i){return e._clock.timeOrigin+i},this.getNowHRTime=function(){return i(e.getNowMillis())},this.getNowMillis=function(){return e.epochMillisFromOriginOffset(e._clock.now())},this._clock=o};export{o as OTelPerformanceManager}; //# sourceMappingURL=OTelPerformanceManager.js.map