Mbed TLS v3.6.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Typedefs | Functions | Variables
platform_time.h File Reference

Mbed TLS Platform time abstraction. More...

#include "mbedtls/build_info.h"
Include dependency graph for platform_time.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef
MBEDTLS_PLATFORM_TIME_TYPE_MACRO 
mbedtls_time_t
 
typedef
MBEDTLS_PLATFORM_MS_TIME_TYPE_MACRO 
mbedtls_ms_time_t
 

Functions

mbedtls_ms_time_t mbedtls_ms_time (void)
 Get time in milliseconds. More...
 
int mbedtls_platform_set_time (mbedtls_time_t(*time_func)(mbedtls_time_t *time))
 Set your own time function pointer. More...
 

Variables

mbedtls_time_t(* mbedtls_time )(mbedtls_time_t *time)
 

Detailed Description

Mbed TLS Platform time abstraction.

Definition in file platform_time.h.

Typedef Documentation

Definition at line 31 of file platform_time.h.

Definition at line 23 of file platform_time.h.

Function Documentation

mbedtls_ms_time_t mbedtls_ms_time ( void  )

Get time in milliseconds.

Returns
Monotonically-increasing current time in milliseconds.
Note
Define MBEDTLS_PLATFORM_MS_TIME_ALT to be able to provide an alternative implementation
Warning
This function returns a monotonically-increasing time value from a start time that will differ from platform to platform, and possibly from run to run of the process.
int mbedtls_platform_set_time ( mbedtls_time_t(*)(mbedtls_time_t *time)  time_func)

Set your own time function pointer.

Parameters
time_functhe time function implementation
Returns
0

Variable Documentation

mbedtls_time_t(* mbedtls_time)(mbedtls_time_t *time)