2015-02-26 09:02:31 -06:00
|
|
|
|
2015-06-01 10:28:29 -05:00
|
|
|
#include "trick/Clock.hh"
|
|
|
|
#include "trick/clock_proto.h"
|
2015-02-26 09:02:31 -06:00
|
|
|
|
|
|
|
extern Trick::Clock * the_clock ;
|
|
|
|
|
2018-09-19 11:25:04 -05:00
|
|
|
extern "C" long long clock_time(void) {
|
2015-02-26 09:02:31 -06:00
|
|
|
return the_clock->clock_time() ;
|
|
|
|
}
|
|
|
|
|
2018-09-19 11:25:04 -05:00
|
|
|
extern "C" long long clock_wall_time(void) {
|
2015-02-26 09:02:31 -06:00
|
|
|
return the_clock->wall_clock_time() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" long long clock_reset(long long ref) {
|
|
|
|
return the_clock->clock_reset(ref) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" int clock_set_reference(long long ref) {
|
|
|
|
return the_clock->set_reference(ref) ;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" int clock_spin(long long ref) {
|
|
|
|
return the_clock->clock_spin(ref) ;
|
|
|
|
}
|
|
|
|
|
2018-09-19 11:25:04 -05:00
|
|
|
extern "C" double clock_get_rt_clock_ratio(void) {
|
2015-02-26 09:02:31 -06:00
|
|
|
return the_clock->get_rt_clock_ratio() ;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern "C" int clock_set_rt_clock_ratio(double in_clock_ratio) {
|
|
|
|
return the_clock->set_rt_clock_ratio(in_clock_ratio) ;
|
|
|
|
}
|
|
|
|
|
2019-06-07 08:29:47 -05:00
|
|
|
extern "C" unsigned long long clock_tics_per_sec(void) {
|
|
|
|
return the_clock->clock_tics_per_sec;
|
2019-06-14 09:04:20 -05:00
|
|
|
}
|