Skip to content
/ lap Public

Simple module to track how long it takes between marks

License

Notifications You must be signed in to change notification settings

btholt/lap

Repository files navigation

time-lap


stopwatch logo

Simple API to track how long it takes between marks

Install

npm install time-lap

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.

About

Simple module to track how long it takes between marks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published