Homepage | Demos | Overview | Downloads | Tutorials | Reference | Credits |
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-1_4_1 $ 00023 * $Revision: 1.2 $ 00024 * $State: Exp $ 00025 * $Date: 2003/01/09 02:03:00 $ 00026 */
Tekkotsu v1.4 |
Generated Sat Jul 19 00:06:30 2003 by Doxygen 1.3.2 |