c - Variable Microsecond in Dhrystone -


what unit of variable microsecond in dhrystone benchmark?

is seconds or microseconds?

yes, obvious variable named microseconds should represent number in unit, if @ previous lines in code, there stands :

struct tms start_time, end_time; double          user_time; double          microseconds,             dhrystones_per_second;  times(&start_time); ...something... times(&end_time);  user_time = (double)(end_time.tms_utime - start_time.tms_utime); microseconds = user_time / ((double)clocks_per_sec * (double) number_of_runs); fprintf(stdout, "microsec per run: %e \n", microseconds); dhrystones_per_second = (double) (1/microseconds); 

what should indicate microseconds in seconds?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -