Hello....
I am running a C++ program that takes an N array and reads a
from a file. One requirement of this project is that it returns an
elapsed time of each function so the function efficiency can be
calculated based upon an input.
I am attempting to implement the time.h
header file and use 2 clock_t variables in order to calculate the
difference between the 2 times. Using for example t2-t1. When I return
this value I receive 0 seconds run time continually for each function.
I am looking for some way to output the run time of each function in
microseconds to be able to calculate the fast run time without having to
input a large graph . So how could i do this?!