Homepage Demos Overview Downloads Tutorials Reference
Credits

get_time.cc

Go to the documentation of this file.
00001 #include "get_time.h"
00002 
00003 #ifndef PLATFORM_APERIOS
00004 extern unsigned int simulator_time; //!< the current time the simulator wants it to be
00005 unsigned int get_time() {
00006   return simulator_time;
00007 }
00008 #else
00009 #include <MCOOP.h>
00010 unsigned int get_time() {
00011   static struct SystemTime time;
00012   GetSystemTime(&time);
00013   return time.seconds*1000+time.useconds/1000;
00014 }
00015 #endif
00016 
00017 /*! @file
00018  * @brief Implementation of get_time(), a simple way to get the current time since boot in milliseconds
00019  * @author ejt (Creator)
00020  *
00021  * $Author: ejt $
00022  * $Name: tekkotsu-2_2 $
00023  * $Revision: 1.3 $
00024  * $State: Rel $
00025  * $Date: 2003/07/25 20:18:07 $
00026  */

Tekkotsu v2.2
Generated Tue Oct 19 14:19:14 2004 by Doxygen 1.3.9.1