I found this site http://www.guyrutenberg.com/2007/09/22/profiling-code-using-clock_gettime/ If I have a server-client code and this: clock_gettime(CLOCK_REALTIME, &time_a); // create socket clock_gettime(CLOCK_REALTIME, &time_b); // close socket If I have a and b wand want to measure the time it takes to communicate, what's the best way ? Still not fully understanding the exact difference between CLOCK_REALTIME CLOCK_PROCESS_CPUTIME_ID CLOCK_THREAD_CPUTIME_ID And there are a few others.

Member Avatar
Member Avatar
+0 forum 3

I am wanting to measure the performance of an algorithm which I've created, and for some reason the value decreases significantly as I run through my loop

Member Avatar
Member Avatar
+0 forum 2

Hello! I have coded a compression technique and I am having trouble in measuring the speed of it. I tried to generate log of start time and end time, but compression time of same file varies a lot under windows. That may be happening because other processes would be consuming resources my program could me in blocked mode for a while. Can anyone please suggest me a way to measure the execution time of my program minus the waiting time when it was blocked? I can think of three possible ways (1) Setup a minimal Linux and run my program …

Member Avatar
Member Avatar
+0 forum 4

i want to write a program which display alert message whenever 15 mins are over.But i am not finding solution of my problem using waitforexit() or delay() functions. [CODE] #include<time.h> #include<stdio.h> #include<dos.h> #include<conio.h> void main(void) { time_t timer; struct tm *tblock; time_t t; //timeout=18000; /* gets time of day */ timer = time(NULL); /* converts date/time to a structure */ tblock = localtime(&timer); t = time(NULL); printf("Local time is: %s", asctime(tblock)); printf("The number of seconds since January 1, 1970 is %ld",t); while(1) { sleep(150); printf("\n\n\n\n**********************times up************************\n\n"); getch(); }; } [/CODE]

Member Avatar
Member Avatar
+0 forum 2

Dear Sir/Madam, How to measure memory consumption of a VB 6.0's programe? As a programmer in vb. 6.0, where i have to be conscious for getting less consumption of memory of my program at design time? Is there any free software to measure memory consumption of a programe? Please guide me Sir/Madam

Member Avatar
Member Avatar
+0 forum 8

This snippet defines a class LebsegueSet which instances represent sets of real numbers, namely finite unions of intervals. Set theoretical, topological and measure theoretical operations are implemented in pure python. Use freely and enjoy !

Member Avatar
+1 forum 0

The End.