Beyond Verses

My blog that specialize in Space Science and Latest news from NASA

Saturday, October 11, 2008

C++ Timing

#include <stdio.h>
#include <time.h>

int main() {
clock_t start = clock();
/* The program code is here */
printf("Time elapsed: %f\n", ((double)clock() - start) / CLOCKS_PER_SEC);

return 0;
}

2 comments:

mohamed said...

3ala fekra ana elly edetoh el code dah :D

Thanks,

sincerely,
Mohammad Kotb

Ahmed Hamdy said...

:P:P