mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
e00f2dd4ad
* Remove typec.h entirely. * Order all typdefs above local includes.
26 lines
1.4 KiB
C
26 lines
1.4 KiB
C
/***********************************************************************************************************************************
|
|
Time Management
|
|
***********************************************************************************************************************************/
|
|
#ifndef COMMON_TIME_H
|
|
#define COMMON_TIME_H
|
|
|
|
#include <stdint.h>
|
|
|
|
/***********************************************************************************************************************************
|
|
Time types
|
|
***********************************************************************************************************************************/
|
|
typedef uint64_t TimeMSec;
|
|
|
|
/***********************************************************************************************************************************
|
|
Constants describing number of sub-units in an interval
|
|
***********************************************************************************************************************************/
|
|
#define MSEC_PER_SEC ((TimeMSec)1000)
|
|
|
|
/***********************************************************************************************************************************
|
|
Functions
|
|
***********************************************************************************************************************************/
|
|
void sleepMSec(TimeMSec sleepMSec);
|
|
TimeMSec timeMSec();
|
|
|
|
#endif
|