Utilities.cpp File Reference

#include "Utilities.h"

Functions

void UtilGetTime (unsigned int *seconds, unsigned int *milliseconds)
 Get the current system's time in seconds and milliseconds; Since OS epoch time.
void __Assert (bool Assertion, const char *FailText, const char *FileName, int LineNumber)
void UtilSleep (float SleepTime)
void itoa (char *dest, int val)


Function Documentation

void __Assert ( bool  Assertion,
const char *  FailText,
const char *  FileName,
int  LineNumber 
)

Internal assertion function If Assertion is false, it posts the failure string, file name, and line number in a pop-up window

void itoa ( char *  dest,
int  val 
)

Simple itoa implementation Given a decimal integer, convert it to a string

void UtilGetTime ( unsigned int *  seconds,
unsigned int *  milliseconds 
)

Get the current system's time in seconds and milliseconds; Since OS epoch time.

void UtilSleep ( float  SleepTime  ) 

Unix and Win32 wrappers for high-resolution sleep Takes in a fraction of a second (as a float)


Generated on Sun Feb 21 00:00:08 2010 for Penn State Robotics Club: Mini Grand Challenge 2010 by  doxygen 1.5.5