File mock_time.c

FileList > examples > python_api > src > mock_time.c

Go to the source code of this file

  • #include "mock_time.h"

Public Static Attributes

Type Name
uint32_t virtual_time = 0

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 Static Attributes Documentation

variable virtual_time

uint32_t virtual_time;

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/src/mock_time.c