Skip to content

Home > @esengine/ecs-framework-monorepo > ITimer

ITimer interface

Signature:

typescript
export interface ITimer<TContext = unknown>

Properties

Property

Modifiers

Type

Description

context

TContext

Methods

Method

Description

getContext()

返回投向T的上下文,作为方便

reset()

将计时器的运行时间重置为0

stop()

调用stop以停止此计时器再次运行。这对非重复计时器没有影响。

基于 MIT 许可证发布