EEROS  1.0.0.0
API for the EEROS Real-Time Robotics Framework
System.hpp
Go to the documentation of this file.
1 #ifndef ORG_EEROS_CORE_SYSTEM_HPP_
2 #define ORG_EEROS_CORE_SYSTEM_HPP_
3 
4 #include <stdint.h>
5 
6 namespace eeros {
7 
8  static bool rosTimeIsUsed = false;
9 
10  class System {
11  public:
12  static double getClockResolution();
13  static double getTime();
14  static uint64_t getTimeNs();
15 
16 #ifdef USE_ROS
17  static void useRosTime();
18 #endif
19 
20  private:
21  System();
22  };
23 
24 };
25 
26 #endif /* ORG_EEROS_CORE_SYSTEM_HPP_ */
static double getTime()
Definition: System_POSIX.cpp:31
static double getClockResolution()
Definition: System_POSIX.cpp:23
Definition: Config.hpp:14
static uint64_t getTimeNs()
Definition: System_POSIX.cpp:41
Definition: System.hpp:10