2018-01-16 13:05:00 -05:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Time Management
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#ifndef COMMON_TIME_H
|
|
|
|
#define COMMON_TIME_H
|
|
|
|
|
2018-04-06 21:46:45 -04:00
|
|
|
#include <stdint.h>
|
2018-01-16 13:05:00 -05:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Time types
|
|
|
|
***********************************************************************************************************************************/
|
2018-04-05 22:38:11 -04:00
|
|
|
typedef uint64_t TimeMSec;
|
2018-01-16 13:05:00 -05:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
2018-03-21 09:18:48 -04:00
|
|
|
Constants describing number of sub-units in an interval
|
2018-01-16 13:05:00 -05:00
|
|
|
***********************************************************************************************************************************/
|
2018-03-21 09:18:48 -04:00
|
|
|
#define MSEC_PER_SEC ((TimeMSec)1000)
|
2018-01-16 13:05:00 -05:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2018-03-21 09:18:48 -04:00
|
|
|
void sleepMSec(TimeMSec sleepMSec);
|
|
|
|
TimeMSec timeMSec();
|
2018-01-16 13:05:00 -05:00
|
|
|
|
|
|
|
#endif
|