Search
Preparing search index...
The search index is not available
@btilford/ts-base - v1.1.0
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
LocalTimer
Class LocalTimer
Hierarchy
LocalTimer
Implements
{
name
:
string
;
tags
:
Tags
}
&
{
elapsed
:
(
)
=>
Duration
|
undefined
;
end
:
(
tags
?:
Tags
)
=>
Duration
|
undefined
;
mark
:
(
name
:
string
, tags
?:
Tags
)
=>
Duration
|
undefined
;
start
:
(
tags
?:
Tags
)
=>
TimeMeasurement
|
undefined
}
TimeFactory
Index
Constructors
constructor
Properties
done
marks
name
tags
time
Factory
Accessors
is
Done
values
Methods
as
Duration
elapsed
end
mark
now
reset
start
Constructors
constructor
new
Local
Timer
(
name
:
string
, tags
:
Tags
, timeFactory
?:
TimeFactory
)
:
LocalTimer
Parameters
name:
string
tags:
Tags
Optional
timeFactory:
TimeFactory
Returns
LocalTimer
Properties
Protected
done
done
:
boolean
= false
Protected
marks
marks
:
Record
<
string
,
ReadOnlyValue
<
TimeMeasurement
>
>
Readonly
name
name
:
string
Readonly
tags
tags
:
Tags
Protected
Readonly
time
Factory
time
Factory
:
TimeFactory
Accessors
is
Done
get
isDone
(
)
:
boolean
Returns
boolean
values
get
values
(
)
:
ReadOnlyValue
<
TimeMeasurement
>
[]
Returns
ReadOnlyValue
<
TimeMeasurement
>
[]
Methods
as
Duration
as
Duration
(
)
:
Duration
Returns
Duration
elapsed
elapsed
(
)
:
Duration
|
undefined
Returns
Duration
|
undefined
end
end
(
tags
?:
Tags
)
:
Duration
|
undefined
Parameters
Optional
tags:
Tags
Returns
Duration
|
undefined
mark
mark
(
name
:
string
, tags
?:
Tags
)
:
Duration
|
undefined
Parameters
name:
string
Default value
tags:
Tags
= {}
Returns
Duration
|
undefined
now
now
(
)
:
TimeMeasurement
Returns
TimeMeasurement
reset
reset
(
)
:
void
Returns
void
start
start
(
tags
?:
Tags
)
:
TimeMeasurement
Parameters
Default value
tags:
Tags
= {}
Returns
TimeMeasurement
Globals
Local
Timer
constructor
done
marks
name
tags
time
Factory
is
Done
values
as
Duration
elapsed
end
mark
now
reset
start
Generated using
TypeDoc