Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
programming:c-cpp-performance [2012/07/12 09:38]
cyril [Other profilers]
programming:c-cpp-performance [2013/09/19 16:40] (current)
Line 240: Line 240:
 #include <sys/time.h> #include <sys/time.h>
 struct timeval tv; struct timeval tv;
-struct timezone tz; +gettimeofday(&tv,NULL);
-gettimeofday(&tv,&tz);+
  
 unsigned microseconds = tv.tv_sec*1000000 + tv.tv_usec; // beware overflows unsigned microseconds = tv.tv_sec*1000000 + tv.tv_usec; // beware overflows
programming/c-cpp-performance.1342085928.txt.gz · Last modified: 2013/09/19 16:43 (external edit)
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0