litl  0.1.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Typedefs | Functions
Initialization Functions

Typedefs

typedef litl_time_t(* litl_timing_method_t )()
 A callback function that returns the current time in ns. It can be either a pointer to one of the timing functions provided by LiTL or a user-defined function. More...
 

Functions

void litl_time_initialize ()
 Initializes the timing mechanism. More...
 
int litl_set_timing_method (litl_timing_method_t callback)
 Selects the timing function to use. More...
 

Detailed Description

Typedef Documentation

typedef litl_time_t(* litl_timing_method_t)()

A callback function that returns the current time in ns. It can be either a pointer to one of the timing functions provided by LiTL or a user-defined function.

Definition at line 42 of file litl_timer.h.

Function Documentation

int litl_set_timing_method ( litl_timing_method_t  callback)

Selects the timing function to use.

Parameters
callbackA name of timing function
Returns
Returns -1 if an error occurs. Otherwise, returns 0

Definition at line 154 of file litl_timer.c.

void litl_time_initialize ( )

Initializes the timing mechanism.

Definition at line 99 of file litl_timer.c.