Skip to main content
Dotset CLI API Documentation / index / timeAsync

Function: timeAsync()

function timeAsync<T>(
   operation, 
   fn, 
   profiler?): Promise<{
  durationMs: number;
  result: T;
}>;
Defined in: src/shield/utils/profiler.ts:119 Time an async operation

Type Parameters

T

T

Parameters

operation

string

fn

() => Promise<T>

profiler?

Returns

Promise<{ durationMs: number; result: T; }>