Searched refs:fmtelapsed (Results 1 - 19 of 19) sorted by relevance

/ast/src/lib/libast/string/
H A Dfmtclock.c59 return fmtelapsed(t / 10, 100);
H A Dfmtelapsed.c32 fmtelapsed(register unsigned long u, register int n) function
/ast/src/lib/libcoshell/
H A Dcoclose.c73 errormsg(state.lib, 2, "coshell %d jobs %d user %s sys %s", co->index, co->total, fmtelapsed(co->user, CO_QUANT), fmtelapsed(co->sys, CO_QUANT));
/ast/src/cmd/coshell/
H A Djob.c177 message((-4, "jobcheck: %s: possibly hung %s", sp->name, fmtelapsed(cs.time - sp->start, 1)));
257 n = sfsprintf(buf, sizeof(buf), "x %d %d %s %s\n", jp->rid, jp->status, fmtelapsed(jp->user, CO_QUANT), fmtelapsed(jp->sys, CO_QUANT));
H A Dschedule.c292 message((-4, "open=%d override=%d sp=%s mp=%s xp=%s dp=%s dt=%s", nopen, noverride, sp ? sp->name : "*", mp ? mp->name : "*", xp ? xp->name : "*", dp ? dp->name : "*", dp && dt > cs.time ? fmtelapsed(dt - cs.time, 1) : "*"));
525 message((-4, "%s: %s=%s idle=%s load=%s users=%d rank=%s", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up < 0 ? -sp->stat.up : sp->stat.up, 1), fmtelapsed(sp->stat.idle, 1), fmtfloat(sp->stat.load), sp->stat.users, fmtfloat(sp->rank)));
H A Dshell.c398 message((-4, "shellcheck: %s: hung %s", sp->name, fmtelapsed(cs.time - sp->start, 1)));
/ast/src/cmd/nmake/
H A Dtrap.c133 setvar(internal.alarm->name, fmtelapsed(t, 1), 0);
143 error(level, "%6s %s %s", fmtelapsed((a->time >= now) ? (a->time - now) : 0, 1), timestr(tmxsns(a->time, 0)), a->rule->name);
H A Dcommand.c1182 sfprintf(jobs.tmp, "%s %d %s %s", job->target->name, cojob->status, fmtelapsed(cojob->user, CO_QUANT), fmtelapsed(cojob->sys, CO_QUANT));
1342 message((-1, "jobs %d user %s sys %s", state.coshell->total, fmtelapsed(state.coshell->user, CO_QUANT), fmtelapsed(state.coshell->sys, CO_QUANT)));
H A Dstate.c521 error(1, "another make has been running on %s in %s for the past %s", state.makefile, state.view[view].path, fmtelapsed(d, 1));
1083 error(state.regress ? -1 : 1, "%s file system time %s local time by at least %s", r->name, n > 0 ? "lags" : "leads", fmtelapsed(a, 1));
H A Dobject.c1523 error(1, "%s: another user was here %s ago", state.makefile, fmtelapsed(n, 1));
/ast/src/cmd/ss/
H A Dss.c248 sfprintf(sfstdout, "%-12s%4s%7s,%3d user%s idle%7s, load%3d.%02d, %%usr%3d, %%sys%3d\n", sp->name, sp->stat.up < 0 ? "down" : "up", fmtelapsed(sp->stat.up < 0 ? -sp->stat.up : sp->stat.up, 1), sp->stat.users, sp->stat.users == 1 ? ", " : "s,", sp->stat.idle > sp->stat.up ? "%" : fmtelapsed(sp->stat.idle, 1), sp->stat.load / 100, sp->stat.load % 100, sp->stat.pctusr, sp->stat.pctsys);
/ast/src/lib/libcmd/
H A Ddate.c303 int unelapsed = 0; /* fmtelapsed() => strelapsed */
422 sfputr(sfstdout, fmtelapsed((unsigned long)tmxsec(e), 1), '\n');
H A Dtail.c703 error(ERROR_warn(0), "%s: %s timeout", fp->name, fmtelapsed(timeout, 1));
/ast/src/lib/libast/include/
H A Dast.h268 extern char* fmtelapsed(unsigned long, int);
/ast/src/cmd/std/
H A Dps.c681 s = fmtelapsed(state.now - (unsigned long)pp->ps->start, 1);
756 s = fmtelapsed(pp->ps->time, 1);
881 s = fmtelapsed(state.now - (unsigned long)pr->start, 1);
944 s = fmtelapsed(pr->time, 1);
/ast/src/lib/libpz/
H A Dpzopen.c298 , fmtelapsed(e, 100)
/ast/src/cmd/dsslib/time_t/
H A Dtime_t.c206 s = fmtelapsed((unsigned long)value->number, 1000);
/ast/src/cmd/at/
H A Datd.c667 message((-2, "wakeup %s", fmtelapsed(x, 1000)));
753 error(ERROR_OUTPUT|0, con->fd, "%-3s %5lu %3d %3d %3d %3d %3d %2d.%02d %5.5s%s", que->name, que->total, que->pending, que->running, que->nproc, que->peruser, que->nice, que->load / 100, que->load % 100, fmtelapsed(que->wait, 1), s);
/ast/src/lib/libast/
H A DMakefile91 fmtbase.c fmtbuf.c fmtclock.c fmtdev.c fmtelapsed.c fmterror.c \

Completed in 231 milliseconds