mirror of
https://github.com/nasa/trick.git
synced 2024-12-30 18:07:00 +00:00
fccf32093b
* 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
35 lines
768 B
C++
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) ;
|
|
}
|
|
|