src/test/sysdep/linux/input.c
static void reset_joystick_events(void)
{
    for (int i = 0; i < lenof(joystick_events); i++) {
        const uint64_t unit = sys_time_unit();
        const uint64_t epoch = sys_posix_time_epoch() / (unit / 1000000);
        joystick_events[i].time.tv_sec = (epoch / 1000000) + (i+1);
        joystick_events[i].time.tv_usec = epoch % 1000000;
    }
}
/**
 * reset_joystick_events:  Reset the timestamps for all events in
 * joystick_events[] such that the relative timestamp for each events is
 * the index of the event plus one.
 */
Reset the timestamps for all events in
joystick_events[] such that the relative timestamp for each events is
the index of the event plus one.
Reset the timestamps for all events in joystick_events [] such that the relative timestamp for each events is the index of the event plus one .
static void reset_joystick_events(void)
{
    for (int i = 0; i < lenof(joystick_events); i++) {
        const uint64_t unit = sys_time_unit();
        const uint64_t epoch = sys_posix_time_epoch() / (unit / 1000000);
        joystick_events[i].time.tv_sec = (epoch / 1000000) + (i+1);
        joystick_events[i].time.tv_usec = epoch % 1000000;
    }
}
static void reset_joystick_events ( void ) { for ( int i = 0 ; i < lenof ( joystick_events ) ; i ++ ) { const uint64_t unit = sys_time_unit ( ) ; const uint64_t epoch = sys_posix_time_epoch ( ) / ( unit / 1000000 ) ; joystick_events [ i ] . time . tv_sec = ( epoch / 1000000 ) + ( i + 1 ) ; joystick_events [ i ] . time . tv_usec = epoch % 1000000 ; } }
reset_joystick_events:  Reset the timestamps for all events in
 joystick_events[] such that the relative timestamp for each events is
 the index of the event plus one.
reset_joystick_events : Reset the timestamps for all events in joystick_events [] such that the relative timestamp for each events is the index of the event plus one .