ecspresso
    Preparing search index...

    Interface TimerEventData

    Data structure passed to onComplete callbacks when a timer completes.

    createTimer(1.5, {
    onComplete: (data) => {
    console.log(`Timer on entity ${data.entityId} finished after ${data.elapsed}s`);
    }
    });
    interface TimerEventData {
        duration: number;
        elapsed: number;
        entityId: number;
    }
    Index

    Properties

    duration: number

    The timer's configured duration in seconds

    elapsed: number

    The actual elapsed time (may exceed duration slightly)

    entityId: number

    The entity ID that the timer belongs to