27 lines
602 B
C
27 lines
602 B
C
/*
|
|
* Timing.h
|
|
*
|
|
* Created on: 13 May 2016
|
|
* Author: wentzelc
|
|
*/
|
|
|
|
#ifndef REDACORE_TIMINGCORE_H_
|
|
#define REDACORE_TIMINGCORE_H_
|
|
|
|
// redA Libraries
|
|
/* none */
|
|
|
|
// Standard C/C++ Libraries
|
|
#include <sys/time.h>
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
void SetInterval( timeval *Time, long MilliSeconds );
|
|
void SetStartTime( timeval *StartTime );
|
|
long TimePassed( timeval StartTime );
|
|
bool Timeout( timeval StartTime, long MilliSeconds );
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif /* REDACORE_TIMINGCORE_H_ */
|