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/01/17 12:49] cyril [Vectorialization] |
programming:c-cpp-performance [2013/09/19 16:40] (current) |
||
|---|---|---|---|
| Line 121: | Line 121: | ||
| ==== Other profilers ==== | ==== Other profilers ==== | ||
| - | sysprof and oprofile are other profiles | + | sysprof and oprofile are other profilers |
| ==== Traps ==== | ==== Traps ==== | ||
| 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 | ||
