rtxBench.h File Reference
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/stat.h>
#include "rtxsrc/rtxDiag.h"
Go to the source code of this file.
Functions | |
double | rtxBenchAverageMS (clock_t start, clock_t finish, double icnt) |
This function calculates the average number of milliseconds a test takes given the starting time, finishing time, and number of iterations. |
Detailed Description
Definition in file rtxBench.h.
Function Documentation
double rtxBenchAverageMS | ( | clock_t | start, | |
clock_t | finish, | |||
double | icnt | |||
) |
This function calculates the average number of milliseconds a test takes given the starting time, finishing time, and number of iterations.
- Parameters:
-
start The initial start time, as a clock_t structure. finish The final end time, as a clock_t structure. icnt The iteration count.
- Returns:
- The average time a single iteration takes, in milliseconds.