Options
All
  • Public
  • Public/Protected
  • All
Menu

A class to calculate time between anything.

Type parameters

Hierarchy

  • TimeMeter

Implements

  • TimeMeterInterface

Index

Constructors

  • new TimeMeter<F>(__namedParameters?: TimeMeterOptions<F>): TimeMeter<F>

Properties

_cache: bigint
_formatter: F
_last: bigint

Methods

  • getFormatter(): F
  • last(): ReturnType<F["format"]>
  • Returns ReturnType<F["format"]>

  • lastRaw(): bigint
  • Returns bigint

  • next(): ReturnType<F["format"]>
  • Returns ReturnType<F["format"]>

  • nextRaw(): bigint
  • Returns bigint

Generated using TypeDoc