1.1.0 • Published 5 years ago
stoppuhr v1.1.0
stoppuhr
Simple execution time tracker class.
Installation
npm install --save stoppuhr@^1.1.0yarn add stoppuhr@^1.1.0
(if configured properly)
npm install --save @jaid/stoppuhr@^1.1.0Example
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:
70002Variable result2 will be:
"1m 10s 2ms"Development
Setting up:
git clone git@github.com:jaid/stoppuhr.git
cd stoppuhr
npm installTesting:
npm run test:devTesting in production environment:
npm run testLicense
MIT License
Copyright © 2020, Jaid \jaid.jsx@gmail.com (https://github.com/jaid)