time-lap
TypeScript icon, indicating that this package has built-in type declarations

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.

Readme

Keywords

Package Sidebar

Install

npm i time-lap

Weekly Downloads

10

Version

1.0.1

License

Apache-2.0

Unpacked Size

51.6 kB

Total Files

11

Last publish

Collaborators

  • btholt