- Library Clean up: - Removed all unused C/C++ libraries from source - First C/C++ libraries then redA libraries - Library changes: - renamed BufferCore -> CharBufferCore - added ItemBufferCore - CharBufferCore: - Derive RollingBuffer & ShiftBuffer from common class CharBuffer - CharBuffer is mostly a virtual class (interface)
31 lines
692 B
C
31 lines
692 B
C
/*
|
|
* TimingCore.h
|
|
*
|
|
* Created on: 13 May 2016
|
|
* Author: wentzelc
|
|
*/
|
|
|
|
#ifndef REDACORE_TIMINGCORE_H_
|
|
#define REDACORE_TIMINGCORE_H_
|
|
|
|
// Standard C/C++ Libraries
|
|
#include <sys/time.h>
|
|
|
|
// redA Libraries
|
|
/* none */
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
// Manage as Interval
|
|
void SetInterval( timeval *Time, long MilliSeconds );
|
|
|
|
// Manage as Timer
|
|
void SetStartTime( timeval *StartTime );
|
|
void ClearStartTime( timeval * StartTime );
|
|
long TimePassed( timeval StartTime );
|
|
bool Timeout( timeval StartTime, long MilliSeconds );
|
|
|
|
//---------------------------------------------------------------------------
|
|
|
|
#endif /* REDACORE_TIMINGCORE_H_ */
|