Lines Matching refs:t
34 register unsigned long t; in fmtelapsed() local
43 t = u / n; in fmtelapsed()
44 if (t < 60) in fmtelapsed()
45 sfsprintf(buf, z, "%lu.%02lus", t, (u * 100 / n) % 100); in fmtelapsed()
46 else if (t < 60*60) in fmtelapsed()
47 sfsprintf(buf, z, "%lum%02lus", t / 60, t - (t / 60) * 60); in fmtelapsed()
48 else if (t < 24*60*60) in fmtelapsed()
49 sfsprintf(buf, z, "%luh%02lum", t / (60*60), (t - (t / (60*60)) * (60*60)) / 60); in fmtelapsed()
50 else if (t < 7*24*60*60) in fmtelapsed()
51 sfsprintf(buf, z, "%lud%02luh", t / (24*60*60), (t - (t / (24*60*60)) * (24*60*60)) / (60*60)); in fmtelapsed()
52 else if (t < 31*24*60*60) in fmtelapsed()
53 …sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60… in fmtelapsed()
54 else if (t < 365*24*60*60) in fmtelapsed()
55 …sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60))… in fmtelapsed()
56 else if (t < (365UL*4UL+1UL)*24UL*60UL*60UL) in fmtelapsed()
57 …sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) *… in fmtelapsed()
59 …sfsprintf(buf, z, "%luY%02luM", (t * 4) / ((365UL*4UL+1UL)*24UL*60UL*60UL), (((t * 4) - ((t * 4) /… in fmtelapsed()