Functions

C-Functions to get Timestamp, etc..

Functions

kogmo_timestamp_t kogmo_rtdb_timestamp_now (kogmo_rtdb_handle_t *db_h)
 Get absolute Timestamp for current Time within the given database (can be different to kogmo_timestamp_now() when in simulation mode.
int kogmo_rtdb_timestamp_set (kogmo_rtdb_handle_t *db_h, kogmo_timestamp_t new_ts)
 Set current Time to the given absolute Timestamp. This has only an effect if the rtdb is in simulation mode (kogmo_rtdb_man -s) and the clients use kogmo_rtdb_timestamp_now() instead of kogmo_timestamp_now()).

Function Documentation

kogmo_timestamp_t kogmo_rtdb_timestamp_now ( kogmo_rtdb_handle_t db_h  ) 

Get absolute Timestamp for current Time within the given database (can be different to kogmo_timestamp_now() when in simulation mode.

Parameters:
db_h database handle
Returns:
zero on errors
int kogmo_rtdb_timestamp_set ( kogmo_rtdb_handle_t db_h,
kogmo_timestamp_t  new_ts 
)

Set current Time to the given absolute Timestamp. This has only an effect if the rtdb is in simulation mode (kogmo_rtdb_man -s) and the clients use kogmo_rtdb_timestamp_now() instead of kogmo_timestamp_now()).

Parameters:
db_h database handle
new_ts new timestamp (0: give client the real current time, kogmo_timestamp_now())
Returns:
0 for OK, -KOGMO_RTDB_ERR_NOPERM if RTDB is not in simulation mode.

Generated for KogMo-RTDB by Matthias.Goebl (mattias.goebl*kogmo-rtdb.de) - all rights reserved.