Select one of the symbols to view example projects that use it.
 
Outline
#include <stdint.h>
esp_log_timestamp();
esp_log_system_timestamp();
esp_log_early_timestamp();
Files
loading...
SourceVuESP-IDF Framework and ExamplesESP-IDFcomponents/log/include/esp_log_timestamp.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2015-2024 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #pragma once #include <stdint.h> #ifdef __cplusplus extern "C" { #endif /** * @brief Function which returns timestamp to be used in log output * * This function is used in expansion of ESP_LOGx macros. * In the 2nd stage bootloader, and at early application startup stage * this function uses CPU cycle counter as time source. Later when * FreeRTOS scheduler start running, it switches to FreeRTOS tick count. * * For now, we ignore millisecond counter overflow. * * @return timestamp, in milliseconds *//* ... */ uint32_t esp_log_timestamp(void); /** * @brief Function which returns system timestamp to be used in log output * * This function is used in expansion of ESP_LOGx macros to print * the system time as "HH:MM:SS.sss". The system time is initialized to * 0 on startup, this can be set to the correct time with an SNTP sync, * or manually with standard POSIX time functions. * * Currently, this will not get used in logging from binary blobs * (i.e. Wi-Fi & Bluetooth libraries), these will still print the RTOS tick time. * * @return timestamp, in "HH:MM:SS.sss" *//* ... */ char* esp_log_system_timestamp(void); /** * @brief Function which returns timestamp to be used in log output * * This function uses HW cycle counter and does not depend on OS, * so it can be safely used after application crash. * * @return timestamp, in milliseconds *//* ... */ uint32_t esp_log_early_timestamp(void); #ifdef __cplusplus }{...} #endif
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.