00001 #include "get_time.h"
00002
00003 #ifdef PLATFORM_APERIOS
00004 #include <MCOOP.h>
00005 unsigned int get_time() {
00006 static struct SystemTime time;
00007 GetSystemTime(&time);
00008 return time.seconds*1000+time.useconds/1000;
00009 }
00010 #else
00011 #include "TimeET.h"
00012 namespace project_get_time {
00013 unsigned int simulation_time=-1U;
00014 unsigned int default_get_time_callback() {
00015 static TimeET first;
00016 return static_cast<unsigned int>(first.Age().Value()*1000);
00017 }
00018 unsigned int (*get_time_callback)()=&default_get_time_callback;
00019 }
00020 #endif
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031