#805 add C call to clock_tics_per_sec

This commit is contained in:
Scott Fennell 2019-06-07 08:29:47 -05:00
parent 731b9b9c1f
commit b1d791dc94
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,7 @@ int clock_spin(long long ref) ;
int clock_set_reference(long long ref) ;
double clock_get_rt_clock_ratio(void) ;
int clock_set_rt_clock_ratio(double in_rt_clock_ratio) ;
unsigned long long clock_tics_per_sec(void) ;
#ifdef __cplusplus
}

View File

@ -32,3 +32,6 @@ extern "C" int clock_set_rt_clock_ratio(double in_clock_ratio) {
return the_clock->set_rt_clock_ratio(in_clock_ratio) ;
}
extern "C" unsigned long long clock_tics_per_sec(void) {
return the_clock->clock_tics_per_sec;
}