libarmutils  1.4
 All Data Structures Files Functions Variables Typedefs Enumerations Macros Groups
Benchmark Utils

Functions

void benchmark_init (void)
 Initialize the benchmark function.
void benchmark (FILE *fp, char *message)
 Print benchmark.

Detailed Description


Function Documentation

void benchmark ( FILE *  fp,
char *  message 
)

Print benchmark.

Before using this function the benchmark_init() function should be called.

The first call to this function will print the elapsed times used by the CPU since the program started. All subsequent calls to this function will print the elapsed times since the previous call, and the total times since the program started.

The user time is the CPU time (in seconds) used while executing instructions in the user space of the calling process.

The system time is the CPU time (in seconds) used by the system on behalf of the calling process.

The cuser time is the sum of the user times (in seconds) for the calling process and the child processes.

The csystem time is the sum of the system times (in seconds) for the calling process and the child processes.

The real time is the wall clock time (in seconds).

Parameters:
fp- pointer to output file stream
message- message to print at the top of the output

Definition at line 77 of file benchmark.c.

void benchmark_init ( void  )

Initialize the benchmark function.

This function should be called when the calling process starts. It sets the start time used to determine the real time in the benchmark() output.

Definition at line 45 of file benchmark.c.