I know this post belongs on the plain ol' C++ board, but my posts dissappear on that board! (no mistake).
Ok, anyways, I need to know if this program I am about to show you is accurate to clock processor speed. Is the processor really working hard?
int x = 0;
int y = 0;
int z = 0;
printf("Input the end of the range please (0 - x): x = ");
actualZ = z + 1;
time_t StartTime = time(NULL);
x = rand() %actualZ;
time_t EndTime = time(NULL);
difference = EndTime - StartTime;
printf("A random number between 0 and %d ",z);
printf("was generated %d times ",y);
printf("in %d seconds",difference);