Search
Preparing search index...
The search index is not available
@pipeletteio/time-meter
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
@pipeletteio/time-meter
TimeMeter
Class TimeMeter<F>
A class to calculate time between anything.
Type parameters
F
:
TimeFormatterInterface
=
MilisecondFormatter
Hierarchy
TimeMeter
Implements
TimeMeterInterface
Index
Constructors
constructor
Properties
_cache
_formatter
_last
Methods
get
Formatter
last
last
Raw
next
next
Raw
Constructors
constructor
new
Time
Meter
<
F
>
(
__namedParameters
?:
TimeMeterOptions
<
F
>
)
:
TimeMeter
<
F
>
Type parameters
F
:
TimeFormatterInterface
=
MilisecondFormatter
Parameters
__namedParameters:
TimeMeterOptions
<
F
>
= {}
Returns
TimeMeter
<
F
>
Properties
Protected
_cache
_cache
:
bigint
Protected
Readonly
_formatter
_formatter
:
F
Protected
_last
_last
:
bigint
Methods
get
Formatter
get
Formatter
(
)
:
F
Returns
F
last
last
(
)
:
ReturnType
<
F
[
"format"
]
>
Returns
ReturnType
<
F
[
"format"
]
>
last
Raw
last
Raw
(
)
:
bigint
Returns
bigint
next
next
(
)
:
ReturnType
<
F
[
"format"
]
>
Returns
ReturnType
<
F
[
"format"
]
>
next
Raw
next
Raw
(
)
:
bigint
Returns
bigint
Exports
Time
Meter
constructor
_cache
_formatter
_last
get
Formatter
last
last
Raw
next
next
Raw
Generated using
TypeDoc
A class to calculate time between anything.