trick/trick_source/sim_services/Clock/clock_c_intf.cpp
jmpenn fccf32093b
Explicitly specify void arg for C functions that take no arguments. (#670)
* Clock empty args to void

* command_line func empty args to void

* DataRecord func empty args to void

* debug_pause func empty args to void

* echojobs func empty args to void

* ExternalApplication func empty args to void

* FrameLog func empty args to void

* MasterSlave func empty args to void

* MonteCarlo func empty args to void

* outdllist func proto empty args to void

* sie func empty args to void

* SimTime func empty args to void

* UnitTest func empty args to void

* var_server func empty args to void

* wcs func empty args to void
2018-09-19 11:25:04 -05:00

35 lines
768 B
C++

#include "trick/Clock.hh"
#include "trick/clock_proto.h"
extern Trick::Clock * the_clock ;
extern "C" long long clock_time(void) {
return the_clock->clock_time() ;
}
extern "C" long long clock_wall_time(void) {
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) ;
}
extern "C" double clock_get_rt_clock_ratio(void) {
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) ;
}