Sunday, December 28, 2008

Time based output

This program provides the cpu time used by the program at the end of the program execution.#include <time.h>#include <stdio.h>int main(int argc, char *argv[]) {clock_t ticks;int i=0;while(i<50000){printf("Work work %dn", i);i++;ticks = clock...

Read More...

No comments: