mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
adb79a4852
* Added C++ sentinels if missed * Used #pragma once, removed macro's with leading underscores * Updated copyright checker to allow "BSD-2-Clause-FreeBSD AND Apache-2.0" for newlib files * Fixed minor compilation issues/implicit inclusions
32 lines
599 B
C
32 lines
599 B
C
/*
|
|
* SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include_next <time.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#define _POSIX_TIMERS 1
|
|
#ifndef CLOCK_MONOTONIC
|
|
#define CLOCK_MONOTONIC (clockid_t)4
|
|
#endif
|
|
#ifndef CLOCK_BOOTTIME
|
|
#define CLOCK_BOOTTIME (clockid_t)4
|
|
#endif
|
|
|
|
int clock_settime(clockid_t clock_id, const struct timespec *tp);
|
|
int clock_gettime(clockid_t clock_id, struct timespec *tp);
|
|
int clock_getres(clockid_t clock_id, struct timespec *res);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|