C Codes
Beginners
C on Unix
Code Snippets
Data Structures
File Operations
Games Graphics
Gnu-Linux
Hardware
Mathematics
Miscellaneous
Small Programs
Sorting
C > Miscellaneous sample source codes
Time c code 3
Time c code 3 #include <stdio.h> #include <time.h> int main(void) { clock_t start, end; int i = 0; start = clock(); for(i = 0; i < 99999999; i++) ; end = clock(); printf("Oeff.. %.2f sec's\n", (double)(end - start) / (double)CLOCKS_PER_SEC); return 0; }
Privacy Policy
|
Link to Us
|
Links