1.1.0 • Published 3 years ago

stoppuhr v1.1.0

Weekly downloads
16
License
-
Repository
github
Last release
3 years ago

stoppuhr



Simple execution time tracker class.

Installation

npm install --save stoppuhr@^1.1.0

yarn add stoppuhr@^1.1.0


(if configured properly)

npm install --save @jaid/stoppuhr@^1.1.0

Example

import Stoppuhr from "stoppuhr"

const stoppuhr = new StoppUhr

function resolve() {
  const result = stoppuhr.total()
  const result2 = stoppuhr.totalText()
}

setTimeout(resolve, 70000)

Variable result will be:

70002

Variable result2 will be:

"1m 10s 2ms"

Development

Setting up:

git clone git@github.com:jaid/stoppuhr.git
cd stoppuhr
npm install

Testing:

npm run test:dev

Testing in production environment:

npm run test

License

MIT License
Copyright © 2020, Jaid \jaid.jsx@gmail.com (https://github.com/jaid)