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 }
00020 #endif
00021 
00022 /*! @file
00023  * @brief Implementation of get_time(), a simple way to get the current time since boot in milliseconds
00024  * @author ejt (Creator)
00025  *
00026  * $Author: ejt $
00027  * $Name: tekkotsu-2_4_1 $
00028  * $Revision: 1.4 $
00029  * $State: Exp $
00030  * $Date: 2005/06/01 05:47:49 $
00031  */

Tekkotsu v2.4.1
Generated Tue Aug 16 16:32:47 2005 by Doxygen 1.4.4