Changeset 113 for trunk/IPs/systemC/processor/Morpheo/Common/include/Time.h
- Timestamp:
- Apr 14, 2009, 8:39:12 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Common/include/Time.h
r97 r113 9 9 #include <iostream> 10 10 #include <sys/time.h> 11 #include "Common/include/Systemc.h" 11 12 12 13 namespace morpheo { … … 28 29 { 29 30 #ifdef SYSTEMC 30 nb_cycles_begin = s c_simulation_time();31 nb_cycles_begin = simulation_cycle(); 31 32 #endif 32 33 gettimeofday(&time_begin,NULL); … … 48 49 if (x.systemc) 49 50 { 50 double nb_cycles_end = s c_simulation_time();51 double nb_cycles_end = simulation_cycle(); 51 52 double average = static_cast<double>(nb_cycles_end-x.nb_cycles_begin+1) / static_cast<double>(time_end.tv_sec-x.time_begin.tv_sec+1); 52 53
Note: See TracChangeset
for help on using the changeset viewer.