1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-14 10:13:05 +02:00
pgbackrest/src/common/time.h

26 lines
1.4 KiB
C
Raw Normal View History

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