ML_time.h File Reference

This file contains time and random headers. More...

Functions

time_t ML_GetTime ()
 This function gets RTC time.
char * ML_GetTimeChar ()
 This function gets RTC time in char.
void ML_InitRand ()
 This function initializes the random system. Call this once.
int ML_Rand (int min, int max)
 This function returns a random number between "min" and "max". Call this function after ML_InitRand().
int ML_GetFPS ()
 This function returns the FPS.
void ML_Wait (u32 ms)
 This function waits.
u32 ML_ElapsedTime ()
 This function returns the time elapsed in milliseconds.

Detailed Description

This file contains time and random headers.


Function Documentation

u32 ML_ElapsedTime (  ) 

This function returns the time elapsed in milliseconds.

Returns:
Time elapsed in ms.
int ML_GetFPS (  ) 

This function returns the FPS.

Returns:
Return the FPS.
time_t ML_GetTime (  ) 

This function gets RTC time.

Returns:
Return time in a time_t struct.
char * ML_GetTimeChar (  ) 

This function gets RTC time in char.

Returns:
Return time in char.
int ML_Rand ( int  min,
int  max 
)

This function returns a random number between "min" and "max". Call this function after ML_InitRand().

Parameters:
min Minimum number
max Maximum number
Returns:
Return the random number.
void ML_Wait ( u32  ms  ) 

This function waits.

Parameters:
ms Time to wait in milliseconds
 All Data Structures Files Functions Variables Defines

Generated on Wed Jan 19 18:15:34 2011 for MLlib by  doxygen 1.6.1