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

1.1.0 • Public • Published

stoppuhr

License Sponsor stoppuhr
Build status Commits since v1.1.0 Last commit Issues
Latest version on npm Dependents Downloads

Simple execution time tracker class.

Installation

stoppuhr on npm

npm install --save stoppuhr@^1.1.0

stoppuhr on Yarn

yarn add stoppuhr@^1.1.0

@jaid/stoppuhr on GitHub Packages
(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)

Readme

Keywords

none

Package Sidebar

Install

npm i stoppuhr

Weekly Downloads

1

Version

1.1.0

License

none

Unpacked Size

6.82 kB

Total Files

5

Last publish

Collaborators

  • jaid