XBinder  Version 2.6.x
Functions
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. More...
 

Function Documentation

◆ rtxBenchAverageMS()

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
startThe initial start time, as a clock_t structure.
finishThe final end time, as a clock_t structure.
icntThe iteration count.
Returns
The average time a single iteration takes, in milliseconds.