Changeset 9f0b10c in OpenModelica
- Timestamp:
- 2020-09-29T01:02:35+02:00 (4 years ago)
- Branches:
- maintenance/v1.16
- Children:
- a87e006
- Parents:
- 6e0b36d4
- git-author:
- AnHeuermann <andreas.heuermann@…> (06/10/20 10:35:46)
- git-committer:
- Adrian Pop <adrian.pop@…> (09/29/20 01:02:35)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
OMCompiler/SimulationRuntime/c/util/rtclock.h
r83be5f2b r9f0b10c 35 35 #endif 36 36 37 #if defined(OMC_MINIMAL_RUNTIME)38 39 typedef int rtclock_t;40 static inline void rt_ext_tp_tick(rtclock_t* tick_tp) {}41 static inline double rt_ext_tp_tock(rtclock_t* tick_tp) {return 0.0;}42 static inline void rt_tick(int ix) {}43 static inline double rt_tock(int ix) {return 0.0;}44 45 #else46 47 #include <stdint.h>48 49 37 #define NUM_RT_CLOCKS 33 50 38 #define NUM_USER_RT_CLOCKS 32 … … 69 57 #define SIM_TIMER_DAE 15 70 58 #define SIM_TIMER_FIRST_FUNCTION 16 59 60 #if defined(OMC_MINIMAL_RUNTIME) 61 62 typedef int rtclock_t; 63 static inline void rt_ext_tp_tick(rtclock_t* tick_tp) {} 64 static inline double rt_ext_tp_tock(rtclock_t* tick_tp) {return 0.0;} 65 static inline void rt_tick(int ix) {} 66 static inline void rt_accumulate(int ix) {} 67 static inline void rt_clear(int ix) {} 68 static inline double rt_tock(int ix) {return 0.0;} 69 70 #else 71 72 #include <stdint.h> 71 73 72 74 #define SIM_PROF_TICK_FN(ix) rt_tick(ix+SIM_TIMER_FIRST_FUNCTION)
Note: See TracChangeset
for help on using the changeset viewer.