PsyTask | API Docs
    Preparing search index...

    Variable createTimerConst

    createTimer: (
        shouldStop: (time: number, records: TimerRecords) => boolean,
    ) => Timer

    Create rAF timer

    Type Declaration

    const frame_ms = 16.67;
    const duration = 100;
    const timer = createTimer(
    (time, records) => time - records[0] >= duration - frame_ms / 2,
    );