Home
last modified time | relevance | path

Searched refs:clk_tck (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtclock.c38 static unsigned int clk_tck; in fmtclock() local
40 if (!clk_tck) in fmtclock()
43 clk_tck = CLOCKS_PER_SEC; in fmtclock()
45 if (!(clk_tck = (unsigned int)strtoul(astconf("CLK_TCK", NiL, NiL), NiL, 10))) in fmtclock()
46 clk_tck = 60; in fmtclock()
53 t = (t * 1000000) / clk_tck; in fmtclock()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/include/
H A Ddefs.h106 int clk_tck; /* number of ticks per second */ member
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dinit.c593 # define dtime(tp) (((double)times(tp))/shgd->lim.clk_tck)
1290 shgd->lim.clk_tck = getconf("CLK_TCK"); in sh_init()
1300 if(shgd->lim.clk_tck <=0) in sh_init()
1301 shgd->lim.clk_tck = CLK_TCK; in sh_init()
H A Dxec.c195 frac = t%shgd->lim.clk_tck; in l_time()
196 frac = (frac*100)/shgd->lim.clk_tck; in l_time()
198 t /= shgd->lim.clk_tck; in l_time()
255 d = (double)tm[n]/shp->gd->lim.clk_tck; in p_time()
2644 at = shp->gd->lim.clk_tck*(ta.tv_sec-tb.tv_sec); in sh_exec()
2645 …at += ((shp->gd->lim.clk_tck*(((1000000L/2)/shp->gd->lim.clk_tck)+(ta.tv_usec-tb.tv_usec)))/10000… in sh_exec()