UNPKG

@embrace-io/web-sdk

Version:
3 lines (2 loc) 380 B
import{otperformance as i,millisToHrTime as t}from"@opentelemetry/core";class o{constructor(o=i){this.epochMillisFromOriginOffset=i=>this._clock.timeOrigin+i,this.getNowHRTime=()=>t(this.getNowMillis()),this.getNowMillis=()=>this.epochMillisFromOriginOffset(this._clock.now()),this._clock=o}}export{o as OTelPerformanceManager}; //# sourceMappingURL=OTelPerformanceManager.js.map