File mock_time.h

FileList > examples > python_api > inc > mock_time.h

Go to the source code of this file

  • #include <stdint.h>

Public Functions

Type Name
void mock_time_advance (uint32_t delta)
Advances the virtual time by the specified number of microseconds.
uint32_t mock_time_now (void)
Returns the current virtual time in microseconds.
void mock_time_reset (void)
Resets the virtual time to zero.
void mock_time_set (uint32_t value)
Sets the virtual time to a specific value.

Public Functions Documentation

function mock_time_advance

Advances the virtual time by the specified number of microseconds.

void mock_time_advance (
    uint32_t delta
) 

Parameters:

  • delta - Number of microseconds to advance the virtual time.

function mock_time_now

Returns the current virtual time in microseconds.

uint32_t mock_time_now (
    void
) 

Returns:

uint32_t Current virtual time in microseconds.


function mock_time_reset

Resets the virtual time to zero.

void mock_time_reset (
    void
) 


function mock_time_set

Sets the virtual time to a specific value.

void mock_time_set (
    uint32_t value
) 

Parameters:

  • value - The value to set the virtual time to, in microseconds.


The documentation for this class was generated from the following file examples/python_api/inc/mock_time.h