diff --git a/net/WebFrame.js b/net/WebFrame.js index 9bcaaa0..95e54b0 100644 --- a/net/WebFrame.js +++ b/net/WebFrame.js @@ -14,6 +14,11 @@ const FatalError = cl.load( "botanss.errors.FatalError" ); class WebFrame { + get ProcessTime() + { + return process.hrtime.bigint() - this.HTTP.response.raw._hrtime; + } + constructor( Http ) { var _self = this; @@ -170,7 +175,7 @@ class WebFrame this.HTTP.response.headers["Content-Length"] = data.length; this.HTTP.response.write( data ); this.HTTP.response.end(); - Dragonfly.Debug( `Result Planted: ${process.hrtime.bigint() - this.HTTP.response.raw._hrtime}ns` ); + Dragonfly.Debug( `Result Planted: ${this.ProcessTime}ns` ); } __storeCache( data, cache, ttl )