Sudoo-Time

Continuous Integration codecov npm version downloads

Time Controller

Install

yarn add @sudoo/time
# Or
npm install @sudoo/time --save

Usage

Duration

import { Duration } from "@sudoo/time";

const duration: Duration = Duration.of({
    minutes: 5,
});

setTimeout(() => {
    executeThisAfterFiveMinutes();
}, duration.toMilliseconds());