npm

Need private packages and team management tools?Check out npm Orgs. »

time-lap

1.0.1 • Public • Published

lap


stopwatch logo

Simple API to track how long it takes between marks

API

lap.mark

  • @param tag: string
  • @return void

Begin tracking a new tag. Must be called before you call end.

lap.end

  • @return { tag: string, s: number, ms: number }[]

Ends the last tag, returns an array of how long each tag took in both milliseconds (ms) and seconds (s). mark must have been called once.

install

npm i time-lap

Downloadsweekly downloads

7

version

1.0.1

license

Apache-2.0

last publish

collaborators

  • avatar
Report a vulnerability