Lines Matching defs:time

207 /* maximum number of requests on a time limited test */
253 apr_time_t starttime; /* start time of connection */
255 apr_interval_time_t ctime; /* time to connect */
256 apr_interval_time_t time; /* time for connection */
278 int tlimit = 0; /* time limit in secs */
531 srand((unsigned int)time(NULL));
548 * seed in the current time (usually just 4 bytes)
550 t = time(NULL);
562 * seed in some current state of the run-time stack (128 bytes)
717 * First time round ?
782 if ((a->time) < (b->time))
784 if ((a->time) > (b->time))
791 apr_interval_time_t p = a->time - a->ctime;
792 apr_interval_time_t q = b->time - b->ctime;
814 lasttime = apr_time_now(); /* record final time if interrupted */
885 mintot = ap_min(mintot, s->time);
886 mind = ap_min(mind, s->time - s->ctime);
890 maxtot = ap_max(maxtot, s->time);
891 maxd = ap_max(maxd, s->time - s->ctime);
895 total += s->time;
896 totald += s->time - s->ctime;
908 a = ((double)s->time - meantot);
912 a = ((double)s->time - (double)s->ctime - meand);
938 mediand = (stats[done / 2].time + stats[done / 2 + 1].time \
941 mediand = stats[done / 2].time - stats[done / 2].ctime;
953 mediantot = (stats[done / 2].time + stats[done / 2 + 1].time) / 2;
955 mediantot = stats[done / 2].time;
959 * Reduce stats from apr time to milliseconds
1006 SANE("the initial connection time", meancon, mediancon, sdcon);
1007 SANE("the processing time", meand, mediand, sdd);
1008 SANE("the waiting time", meanwait, medianwait, sdwait);
1009 SANE("the total time", meantot, mediantot, sdtot);
1024 printf("\nPercentage of the requests served within a certain time (ms)\n");
1030 ap_round_ms(stats[done - 1].time));
1033 ap_round_ms(stats[(unsigned long)done * percs[i] / 100].time));
1046 t = ap_double_ms(stats[0].time);
1048 t = ap_double_ms(stats[done - 1].time);
1050 t = ap_double_ms(stats[(unsigned long) (0.5 + (double)done * i / 100.0)].time);
1070 ap_round_ms(stats[i].time - stats[i].ctime),
1071 ap_round_ms(stats[i].time),
1176 mintot = ap_min(mintot, s->time);
1178 maxtot = ap_max(maxtot, s->time);
1180 total += s->time;
1183 * Reduce stats from apr time to milliseconds
1325 /* connected first time */
1352 /* first time here */
1359 /* save out time */
1365 s->time = ap_max(0, c->done - c->start);
1517 /* read rest next time */
1536 * this is first time, extract some interesting info
1619 /* save out time */
1621 /* first time here */
1634 s->time = ap_max(0, c->done - c->start);
1646 /* zero connect time with keep-alive */
1955 fprintf(stderr, " -c concurrency Number of multiple requests to make at a time\n");