Refuse to work on this anymore right now.
This commit is contained in:
parent
e3441e9fbd
commit
fda57566d8
26 changed files with 4988 additions and 94 deletions
49
Sim04/simtimer.h
Normal file
49
Sim04/simtimer.h
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
// Program Information ////////////////////////////////////////////////////////
|
||||
/**
|
||||
* @file SimpleTimer.h
|
||||
*
|
||||
* @brief Header file for micro-second precision timer
|
||||
*
|
||||
* @author Michael Leverington
|
||||
*
|
||||
* @details Specifies all member methods of the SimpleTimer
|
||||
*
|
||||
* @version 2.00 (13 January 2017)
|
||||
* 1.00 (11 September 2015)
|
||||
*
|
||||
* @Note None
|
||||
*/
|
||||
|
||||
// Precompiler directives /////////////////////////////////////////////////////
|
||||
|
||||
#ifndef SIMTIMER_H
|
||||
#define SIMTIMER_H
|
||||
|
||||
// Header files ///////////////////////////////////////////////////////////////
|
||||
|
||||
#include <sys/time.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include "OS_SimDriver.h"
|
||||
|
||||
// Global Constants //////////////////////////////////////////////////////////
|
||||
|
||||
enum TIMER_CTRL_CODES { ZERO_TIMER, LAP_TIMER, STOP_TIMER };
|
||||
|
||||
extern const char RADIX_POINT;
|
||||
extern const char SPACED;
|
||||
|
||||
// Function Prototyp /////////////////////////////////////////////////////////
|
||||
|
||||
void *runTimer(void *mSecVoidPtr);
|
||||
// will run a timer for the amount of ms specified
|
||||
double accessTimer( int controlCode, char *timeStr );
|
||||
// returns the actual time as a double AND as a time string
|
||||
|
||||
// no more access needed beyond this point (supporting functions)
|
||||
double processTime( double startSec, double endSec,
|
||||
double startUSec, double endUSec, char *timeStr );
|
||||
void timeToString( int secTime, int uSecTime, char *timeStr );
|
||||
|
||||
#endif // ifndef SIMTIMER_H
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue