Expose ProcessTime
This commit is contained in:
		@@ -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 )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user