Lines Matching defs:ts
298 stats_init(struct tftp_stats *ts)
301 ts->amount = 0;
302 ts->rollovers = 0;
303 ts->retries = 0;
304 ts->blocks = 0;
305 ts->amount = 0;
306 gettimeofday(&(ts->tstart), NULL);
310 printstats(const char *direction, int verbose, struct tftp_stats *ts)
314 delta = ((ts->tstop.tv_sec*10.)+(ts->tstop.tv_usec/100000)) -
315 ((ts->tstart.tv_sec*10.)+(ts->tstart.tv_usec/100000));
319 direction, ts->amount, delta, ts->blocks);
321 if (ts->rollovers != 0)
323 ts->rollovers, ts->rollovers != 1 ? "s" : "");
326 printf(" [%.0f bits/sec]", (ts->amount*8.)/delta);