Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score94%
Publisheda year ago (0.0.4)

INTERNAL

type alias Stopwatch

Allows you to time operations.

Properties

start: () => void

Start the stopwatch.

stop: () => void

Stop the stopwatch.

reset: () => void

Reset the stopwatch.

Tries to get the elapsed ms. Throws if the Stopwatch has not been started.

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";
or

Import directly with a jsr specifier

import { type Stopwatch } from "jsr:@logix/internal-utils";

Add Package

pnpm i jsr:@logix/internal-utils
or (using pnpm 10.8 or older)
pnpm dlx jsr add @logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";

Add Package

yarn add jsr:@logix/internal-utils
or (using Yarn 4.8 or older)
yarn dlx jsr add @logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";

Add Package

vlt install jsr:@logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";

Add Package

npx jsr add @logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";

Add Package

bunx jsr add @logix/internal-utils

Import symbol

import { type Stopwatch } from "@logix/internal-utils";