Main Page | Directories | File List | Globals | Examples

bsTimers.h File Reference

timer utilities More...

#include <bluemelon/types.h>

Defines

#define BLUESENSE_TIMEOUT_MINIMUM_US   10000

Functions

DECLSPEC uint32_t bsTimers_getTimeUs (void)
DECLSPEC uint32_t bsTimers_getDeltaTimeUs (uint32_t startTimeUs, uint32_t endTimeUs)
DECLSPEC void bsTimers_delayMs (uint32_t ms)


Detailed Description

timer utilities

Timer functions with microsecond accuracy


Define Documentation

#define BLUESENSE_TIMEOUT_MINIMUM_US   10000
 

Minimum request time out in micor seconds


Function Documentation

DECLSPEC void bsTimers_delayMs uint32_t  ms  ) 
 

Delays for the specified amount of mili seconds. The function calls sleep under linux/darwin or Sleep under windows

Parameters:
ms the number of miliseconds to delay

DECLSPEC uint32_t bsTimers_getDeltaTimeUs uint32_t  startTimeUs,
uint32_t  endTimeUs
 

returns the difference between end and start time in microseconds. this functions takes into account timer overflows generated in bsTimers_getTimeUs

Returns:
the difference time in micro seconds

DECLSPEC uint32_t bsTimers_getTimeUs void   ) 
 

Returns the absolute time in microseconds.

Returns:
the time in microseconds


Generated on Mon Jan 21 17:51:55 2008 for BlueSense by  doxygen 1.4.4