Select one of the symbols to view example projects that use it.
 
Outline
#include "mbedtls/build_info.h"
#include "mbedtls/platform_time.h"
mbedtls_ms_time()
Files
loading...
SourceVuESP-IDF Framework and ExamplesmbedTLSport/esp_platform_time.c
 
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* * SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD * * SPDX-License-Identifier: Apache-2.0 *//* ... */ #include "mbedtls/build_info.h" #include "mbedtls/platform_time.h" #ifdef MBEDTLS_PLATFORM_MS_TIME_ALT mbedtls_ms_time_t mbedtls_ms_time(void) { int ret; struct timespec tv = {}; mbedtls_ms_time_t current_ms; ret = clock_gettime(CLOCK_MONOTONIC, &tv); if (ret) { return time(NULL) * 1000L; }{...} current_ms = tv.tv_sec; return current_ms * 1000L + tv.tv_nsec / 1000000L; }{ ... } /* ... */#endif // MBEDTLS_PLATFORM_MS_TIME_ALT
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.