trick/trick_source/sim_services/SimTime/SimTime_c_intf.cpp

31 lines
651 B
C++
Raw Normal View History

2015-02-26 15:02:31 +00:00
#include "trick/SimTime.hh"
#include "trick/simtime_proto.h"
2015-02-26 15:02:31 +00:00
extern Trick::SimTime * the_simtime ;
extern "C" double get_rettime(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_rettime()) ;
}
extern "C" double get_gmttime(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_gmttime()) ;
}
extern "C" double get_mettime(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_mettime()) ;
}
extern "C" GMTTIME * get_rettime_struct(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_rettime_struct()) ;
}
extern "C" GMTTIME * get_gmttime_struct(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_gmttime_struct()) ;
}
extern "C" GMTTIME * get_mettime_struct(void) {
2015-02-26 15:02:31 +00:00
return (the_simtime->get_mettime_struct()) ;
}