mirror of
https://github.com/nasa/trick.git
synced 2024-12-24 07:16:41 +00:00
19025d77ad
Reorganized. Created a new top level include directory that will hold all of Trick's header files. Moved all of the Trick headers to this directory. Created a libexec directory that holds all of the executables that users don't need to execute directly. Changed all of the executables remaining in bin to start with "trick-". In the sim_services directories changed all source files to find the Trick headers in their new location. Since all of the include files are gone in sim_services, removed the src directories as well, moving all of the source files up a level. Moved the makefiles, docs, man, and other architecture independent files into a top level share directory. Renamed lib_${TRICK_HOST_CPU} to lib64 or lib depending on the platform we're currently on. refs #63
35 lines
756 B
C++
35 lines
756 B
C++
|
|
#include "trick/Clock.hh"
|
|
#include "trick/clock_proto.h"
|
|
|
|
extern Trick::Clock * the_clock ;
|
|
|
|
extern "C" long long clock_time() {
|
|
return the_clock->clock_time() ;
|
|
}
|
|
|
|
extern "C" long long clock_wall_time() {
|
|
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() {
|
|
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) ;
|
|
}
|
|
|