Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

get_time.cc

Go to the documentation of this file.
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   float (*get_timeScale_callback)()=NULL;
00020 }
00021 #endif
00022 
00023 /*! @file
00024  * @brief Implementation of get_time(), a simple way to get the current time since boot in milliseconds
00025  * @author ejt (Creator)
00026  *
00027  * $Author: ejt $
00028  * $Name: tekkotsu-3_0 $
00029  * $Revision: 1.6 $
00030  * $State: Exp $
00031  * $Date: 2006/10/04 02:40:42 $
00032  */

Tekkotsu v3.0
Generated Wed Oct 4 00:03:43 2006 by Doxygen 1.4.7