This is an efficiency tweak. All the routines that need to know the ** current time get passed a pointer to a struct iperf_time. If it's non-NULL ** it gets used, otherwise we do our own iperf_time_now() to fill it in. ** This lets the caller avoid extraneous iperf_time_now()s when efficiency ** is needed, and not bother with the extra code when efficiency doesn't ** matter too much. */
| 48 | ** matter too much. |
| 49 | */ |
| 50 | static void |
| 51 | getnow( struct iperf_time* nowP, struct iperf_time* nowP2 ) |
| 52 | { |
| 53 | if ( nowP != NULL ) |
| 54 | *nowP2 = *nowP; |
| 55 | else |
| 56 | iperf_time_now(nowP2); |
| 57 | } |
| 58 | |
| 59 | |
| 60 | static void |
no test coverage detected
searching dependent graphs…