Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
programming:c-cpp-performance [2012/07/12 09:38] cyril [Other profilers] |
programming:c-cpp-performance [2013/02/26 15:14] cyril [Measuring total time] |
||
---|---|---|---|
Line 240: | Line 240: | ||
#include < | #include < | ||
struct timeval tv; | struct timeval tv; | ||
- | struct timezone tz; | + | gettimeofday(& |
- | gettimeofday(& | + | |
unsigned microseconds = tv.tv_sec*1000000 + tv.tv_usec; // beware overflows | unsigned microseconds = tv.tv_sec*1000000 + tv.tv_usec; // beware overflows |