- Joined
- Nov 22, 2001
- Location
- Blacksburg, Virginia, USA
We should make a small collection of custom or downloadable progs he could use to benchmark them.
U could use this if linux was on both machines:
#include <stdio.h>
#include <time.h>
void main() {
time_t nowa;
time(&nowa);
printf("Time: %s", asctime(localtime(&nowa)));
int long number = 1;
while (number < 1000000) {
number++;
printf("Number: %d \n", number);
}
printf("Start Time: %s", asctime(localtime(&nowa)));
time_t nowb;
time(&nowb);
printf("End Time: %s", asctime(localtime(&nowb)));
}
![Big grin :D :D](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Calcing the numbers isn't hard for it, its just displaying those numbers.
U could use this if linux was on both machines:
#include <stdio.h>
#include <time.h>
void main() {
time_t nowa;
time(&nowa);
printf("Time: %s", asctime(localtime(&nowa)));
int long number = 1;
while (number < 1000000) {
number++;
printf("Number: %d \n", number);
}
printf("Start Time: %s", asctime(localtime(&nowa)));
time_t nowb;
time(&nowb);
printf("End Time: %s", asctime(localtime(&nowb)));
}
Calcing the numbers isn't hard for it, its just displaying those numbers.