Differences
This shows you the differences between two versions of the page.
| 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 < | #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 | ||
