Return the difference of two time_structs in seconds */
| 666 | |
| 667 | /* Return the difference of two time_structs in seconds */ |
| 668 | static double timeDiff(struct timeval *pStart, struct timeval *pEnd){ |
| 669 | return (pEnd->tv_usec - pStart->tv_usec)*0.000001 + |
| 670 | (double)(pEnd->tv_sec - pStart->tv_sec); |
| 671 | } |
| 672 | |
| 673 | /* |
| 674 | ** Print the timing results. |