Tempo Tapper
1.0.0
A simple library to implement a tempo tapper
|
Go to the documentation of this file.
32 #ifdef TT_TARGET_PLATFORM_POSIX
42 gettimeofday(time, NULL);
45 void add_time(tt_time_t *a, tt_time_t *b, tt_time_t *res)
50 void sub_time(tt_time_t *a, tt_time_t *b, tt_time_t *res)
57 return (time->tv_sec * S_TO_US + time->tv_usec);
void reset_time(tt_time_t *time)
Resets a time var to 0.
void add_time(tt_time_t *a, tt_time_t *b, tt_time_t *res)
Adds two time values.
void sub_time(tt_time_t *a, tt_time_t *b, tt_time_t *res)
Subtracts two time values.
unsigned long time_to_us(tt_time_t *time)
Returns a time value in microseconds.
void current_time(tt_time_t *time)
Receives the current clock time.
Provides all necessary structs and functions to implement a tempo tapper.