mirror of
https://github.com/espressif/esp-idf
synced 2025-03-10 01:29:21 -04:00
27 lines
457 B
C
27 lines
457 B
C
/*
|
|
* SPDX-FileCopyrightText: 2024 Espressif Systems (Shanghai) CO LTD
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* @brief Get current value of RTC counter in microseconds
|
|
*
|
|
* Note: this function may take up to 1 RTC_SLOW_CLK cycle to execute
|
|
*
|
|
* @return current value of RTC counter in microseconds
|
|
*/
|
|
uint64_t esp_rtc_get_time_us(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|