XDK API  3.6.0
Documentation
Functions
Serval_Clock.h File Reference

An interface to the platform clock. More...

#include <Serval_Types.h>
#include <Serval_Exceptions.h>
+ Include dependency graph for Serval_Clock.h:
+ This graph shows which files directly or indirectly include this file:

Functions

retcode_t Clock_getTime (uint32_t *time_ptr)
 
retcode_t Clock_getTimeMillis (uint64_t *time_ptr)
 

Detailed Description

This interface provides two functions to retrieve the system clock in seconds and milliseconds.

Function Documentation

retcode_t Clock_getTime ( uint32_t *  time_ptr)

This function is called to fetch the time in seconds since the last reset.

Parameters
[out]time_ptrThis is reference to a variable which must hold the time in seconds,since last reset, when the function returns. It has to be a valid pointer.
Returns
RC_OK if the time has been successfully retrieved, RC_CLOCK_ERROR_FATAL otherwise.

+ Here is the caller graph for this function:

retcode_t Clock_getTimeMillis ( uint64_t *  time_ptr)

This function is called to fetch the time in milliseconds since the last reset.

Parameters
[out]time_ptrThis is reference to a variable which must hold the time in milliseconds, since last reset, when the function returns. It has to be a valid pointer.
Returns
RC_OK if the time has been successfully retrieved, RC_CLOCK_ERROR_FATAL otherwise.

+ Here is the caller graph for this function:


All rights reserved. The use is subject to the XDK SDK EULA by Bosch Connected Devices and Solutions GmbH.
This documentation file has been automatically generated on Thu Mar 14 2019 19:12:46 by doxygen 1.8.8