ROFL-pipeline  v0.6.0dev
Functions
System Time API

System time API is in charge of providing the pipeline with the time, used for statistics and flow expirations. More...

Functions

ROFL_BEGIN_DECLS int platform_gettimeofday (struct timeval *tval)
 Gets the system time. More...
 

Detailed Description

System time API is in charge of providing the pipeline with the time, used for statistics and flow expirations.

Must be implemented by the library users

Function Documentation

ROFL_BEGIN_DECLS int platform_gettimeofday ( struct timeval *  tval)

Gets the system time.

platform_gettimeofday() has the same semantic as POSIXs gettimeofday. Gets the time and stores it in the structure timeval