User Tools

Site Tools


t2:output_time

output_time


output_time - Get output elapsed time

Description


uint32 output_time();

Get the elapsed time as the number of milli-seconds since the last output data packet was sent.

This time information can help synchronize inputs, combos and macros with the game frame rate.

Return Value


Returns the number of milli-seconds that has being passed since the last output data packet was sent.

Examples


Example #1 output_time() example

main {
    if(get_val(BUTTON_2)) {
        if(output_time() == 0) {
            macro_run("Example.gmk");
        }
    }
}

See Also

t2/output_time.txt · Last modified: 2021/04/01 06:23 by J2Kbr