Skip to main content
variable timeTaken
import { timeTaken } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Measures the time taken by a function to execute.

Use console.time() and console.timeEnd() to measure the difference between the start and end times to determine how long the callback took to execute.

type

(callback: Function) => unknown