mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-14 10:13:05 +02:00
26 lines
1.4 KiB
C
26 lines
1.4 KiB
C
|
/***********************************************************************************************************************************
|
||
|
Time Management
|
||
|
***********************************************************************************************************************************/
|
||
|
#ifndef COMMON_TIME_H
|
||
|
#define COMMON_TIME_H
|
||
|
|
||
|
#include "common/type.h"
|
||
|
|
||
|
/***********************************************************************************************************************************
|
||
|
Time types
|
||
|
***********************************************************************************************************************************/
|
||
|
typedef uint64 TimeUSec;
|
||
|
|
||
|
/***********************************************************************************************************************************
|
||
|
Constants describing number if sub-units in a second
|
||
|
***********************************************************************************************************************************/
|
||
|
#define USEC_PER_SEC ((TimeUSec)1000000)
|
||
|
|
||
|
/***********************************************************************************************************************************
|
||
|
Functions
|
||
|
***********************************************************************************************************************************/
|
||
|
void sleepUSec(TimeUSec);
|
||
|
TimeUSec timeUSec();
|
||
|
|
||
|
#endif
|