2018-01-16 20:05:00 +02:00
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Time Management
|
|
|
|
***********************************************************************************************************************************/
|
|
|
|
#ifndef COMMON_TIME_H
|
|
|
|
#define COMMON_TIME_H
|
|
|
|
|
|
|
|
#include "common/type.h"
|
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Time types
|
|
|
|
***********************************************************************************************************************************/
|
2018-03-21 15:18:48 +02:00
|
|
|
typedef uint64 TimeMSec;
|
2018-01-16 20:05:00 +02:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
2018-03-21 15:18:48 +02:00
|
|
|
Constants describing number of sub-units in an interval
|
2018-01-16 20:05:00 +02:00
|
|
|
***********************************************************************************************************************************/
|
2018-03-21 15:18:48 +02:00
|
|
|
#define MSEC_PER_SEC ((TimeMSec)1000)
|
2018-01-16 20:05:00 +02:00
|
|
|
|
|
|
|
/***********************************************************************************************************************************
|
|
|
|
Functions
|
|
|
|
***********************************************************************************************************************************/
|
2018-03-21 15:18:48 +02:00
|
|
|
void sleepMSec(TimeMSec sleepMSec);
|
|
|
|
TimeMSec timeMSec();
|
2018-01-16 20:05:00 +02:00
|
|
|
|
|
|
|
#endif
|