export async function timePromiseResolution<T>(
  timerName: string,
  promiseProvider: () => Promise<T>,
): Promise<T> {
  console.time(timerName);
  const result = await promiseProvider();
  console.timeEnd(timerName);
  return result;
}
