if (o == NULL) {
UNLOCK(&exp_mtx);
AZ(sleep(1));
- t = time(NULL);
+ t = TIM_real();
continue;
}
TAILQ_REMOVE(&exp_deathrow, o, deathrow);
UNLOCK(&exp_mtx);
AZ(sleep(1));
VCL_Refresh(&sp->vcl);
- t = time(NULL);
+ t = TIM_real();
continue;
}
binheap_delete(exp_heap, o->heap_idx);
CHECK_OBJ_NOTNULL(sp->wrk, WORKER_MAGIC);
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
- sp->obj->entered = time(NULL);
+ sp->obj->entered = TIM_real();
assert(sp->obj->busy != 0);
stevedore->open(stevedore);
printf("Ready\n");
- VSL_stats->start_time = time(NULL);
+ VSL_stats->start_time = TIM_real();
CLI_Init();
w = &ww;
memset(w, 0, sizeof *w);
w->magic = WORKER_MAGIC;
- w->idle = time(NULL);
+ w->idle = TIM_real();
w->wlp = w->wlog;
w->wle = w->wlog + sizeof w->wlog;
AZ(pipe(w->pipe));
/* XXX more check sanity of loghead ? */
logstart = (unsigned char *)loghead + loghead->start;
MTX_INIT(&vsl_mtx);
- loghead->starttime = time(NULL);
+ loghead->starttime = TIM_real();
memset(VSL_stats, 0, sizeof *VSL_stats);
}