Home
last modified time | relevance | path

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

12345

/dports/devel/gnulib/gnulib-20140202-stable/tests/
H A Dtest-times.c47 clock_t clk_tck = CLK_TCK; in main() local
49 clock_t clk_tck = sysconf (_SC_CLK_TCK); in main() local
61 printf ("clk_tck %ld\n", (long int) clk_tck); in main()
64 printf ("tms.tms_utime %ldms\n", ((long int) tms.tms_utime * 1000) / clk_tck); in main()
65 printf ("tms.tms_stime %ldms\n", ((long int) tms.tms_stime * 1000) / clk_tck); in main()
66 printf ("tms.tms_cutime %ldms\n", ((long int) tms.tms_cutime * 1000) / clk_tck); in main()
67 printf ("tms.tms_cstime %ldms\n", ((long int) tms.tms_cstime * 1000) / clk_tck); in main()
95 printf ("clk_tck %ld\n", (long int) clk_tck); in main()
98 printf ("tms.tms_utime %ldms\n", ((long int) tms.tms_utime * 1000) / clk_tck); in main()
99 printf ("tms.tms_stime %ldms\n", ((long int) tms.tms_stime * 1000) / clk_tck); in main()
[all …]
/dports/security/pkcs11-tools/pkcs11-tools-2.5.0/.gnulib/tests/
H A Dtest-times.c47 clock_t clk_tck = CLK_TCK; in main() local
49 clock_t clk_tck = sysconf (_SC_CLK_TCK); in main() local
61 printf ("clk_tck %ld\n", (long int) clk_tck); in main()
64 printf ("tms.tms_utime %ldms\n", ((long int) tms.tms_utime * 1000) / (long int) clk_tck); in main()
65 printf ("tms.tms_stime %ldms\n", ((long int) tms.tms_stime * 1000) / (long int) clk_tck); in main()
66 printf ("tms.tms_cutime %ldms\n", ((long int) tms.tms_cutime * 1000) / (long int) clk_tck); in main()
67 printf ("tms.tms_cstime %ldms\n", ((long int) tms.tms_cstime * 1000) / (long int) clk_tck); in main()
95 printf ("clk_tck %ld\n", (long int) clk_tck); in main()
98 printf ("tms.tms_utime %ldms\n", ((long int) tms.tms_utime * 1000) / (long int) clk_tck); in main()
99 printf ("tms.tms_stime %ldms\n", ((long int) tms.tms_stime * 1000) / (long int) clk_tck); in main()
[all …]
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/libf2c/libU77/
H A Detime_.c132 static long clk_tck = 0; in G77_etime_0()
138 if (!clk_tck) in G77_etime_0()
139 clk_tck = sysconf (_SC_CLK_TCK); in G77_etime_0()
141 if (!clk_tck) in G77_etime_0()
142 clk_tck = CLOCKS_PER_SECOND; in G77_etime_0()
144 if (!clk_tck) in G77_etime_0()
145 clk_tck = CLK_TCK; in G77_etime_0()
147 if (!clk_tck) in G77_etime_0()
148 clk_tck = HZ; in G77_etime_0()
155 tarray[0] = (float) buffer.tms_utime / (float) clk_tck; in G77_etime_0()
[all …]
H A Ddtime_.c137 static long clk_tck = 0; in G77_dtime_0()
145 if (!clk_tck) in G77_dtime_0()
146 clk_tck = sysconf (_SC_CLK_TCK); in G77_dtime_0()
148 if (!clk_tck) in G77_dtime_0()
149 clk_tck = CLOCKS_PER_SECOND; in G77_dtime_0()
151 if (!clk_tck) in G77_dtime_0()
152 clk_tck = CLK_TCK; in G77_dtime_0()
154 if (!clk_tck) in G77_dtime_0()
155 clk_tck = HZ; in G77_dtime_0()
164 tarray[0] = ((float) (utime - old_utime)) / (float) clk_tck; in G77_dtime_0()
[all …]
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/libf2c/libU77/
H A Detime_.c132 static long clk_tck = 0; in G77_etime_0()
138 if (!clk_tck) in G77_etime_0()
139 clk_tck = sysconf (_SC_CLK_TCK); in G77_etime_0()
141 if (!clk_tck) in G77_etime_0()
142 clk_tck = CLOCKS_PER_SECOND; in G77_etime_0()
144 if (!clk_tck) in G77_etime_0()
145 clk_tck = CLK_TCK; in G77_etime_0()
147 if (!clk_tck) in G77_etime_0()
148 clk_tck = HZ; in G77_etime_0()
155 tarray[0] = (float) buffer.tms_utime / (float) clk_tck; in G77_etime_0()
[all …]
H A Ddtime_.c137 static long clk_tck = 0; in G77_dtime_0()
145 if (!clk_tck) in G77_dtime_0()
146 clk_tck = sysconf (_SC_CLK_TCK); in G77_dtime_0()
148 if (!clk_tck) in G77_dtime_0()
149 clk_tck = CLOCKS_PER_SECOND; in G77_dtime_0()
151 if (!clk_tck) in G77_dtime_0()
152 clk_tck = CLK_TCK; in G77_dtime_0()
154 if (!clk_tck) in G77_dtime_0()
155 clk_tck = HZ; in G77_dtime_0()
164 tarray[0] = ((float) (utime - old_utime)) / (float) clk_tck; in G77_dtime_0()
[all …]
/dports/shells/bash/bash-5.1/lib/sh/
H A Dtimes.c35 #define CONVTCK(r) (r.tv_sec * clk_tck + r.tv_usec / (1000000 / clk_tck))
42 static long clk_tck = -1; local
48 if (clk_tck == -1)
49 clk_tck = get_clk_tck();
65 if (clk_tck == -1)
66 clk_tck = get_clk_tck();
72 rv = (clock_t)time((time_t *)0) * clk_tck;
H A Dclock.c49 static long clk_tck = -1; local
51 if (clk_tck == -1)
52 clk_tck = get_clk_tck ();
54 *sfp = t % clk_tck;
55 *sfp = (*sfp * 1000) / clk_tck;
57 *sp = t / clk_tck;
/dports/shells/ksh93-devel/ast-cc1bca27/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()
/dports/shells/ksh93/ast-93u/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()
/dports/shells/ast-ksh/ast-ksh93v/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()
/dports/shells/dash/dash-0.5.11.5/src/bltin/
H A Dtimes.c17 long int clk_tck = sysconf(_SC_CLK_TCK); in timescmd() local
23 utime = (double)buf.tms_utime / clk_tck; in timescmd()
27 stime = (double)buf.tms_stime / clk_tck; in timescmd()
31 cutime = (double)buf.tms_cutime / clk_tck; in timescmd()
35 cstime = (double)buf.tms_cstime / clk_tck; in timescmd()
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/gen/
H A Dtimes.c56 (clock_t)(r.tv_sec * clk_tck + r.tv_usec / (1000000 / (uint)clk_tck))
70 static clock_t clk_tck; in times() local
78 if (clk_tck == 0) in times()
79 clk_tck = (clock_t)CLK_TCK; in times()
/dports/biology/infernal/infernal-1.1.3/easel/
H A Desl_stopwatch.c103 double clk_tck; in esl_stopwatch_Stop() local
107 double clk_tck; in esl_stopwatch_Stop()
117 clk_tck = (double) sysconf(_SC_CLK_TCK); in esl_stopwatch_Stop()
120 w->cpu0.tms_utime - w->cpu0.tms_cutime) / clk_tck; in esl_stopwatch_Stop()
122 w->cpu0.tms_stime - w->cpu0.tms_cstime) / clk_tck; in esl_stopwatch_Stop()
125 clk_tck = (double) sysconf(_SC_CLK_TCK); in esl_stopwatch_Stop()
126 w->elapsed = (double) (t1 - w->t0) / clk_tck; in esl_stopwatch_Stop()
128 w->cpu0.tms_utime - w->cpu0.tms_cutime) / clk_tck; in esl_stopwatch_Stop()
130 w->cpu0.tms_stime - w->cpu0.tms_cstime) / clk_tck; in esl_stopwatch_Stop()
/dports/biology/hmmer/hmmer-3.3/easel/
H A Desl_stopwatch.c103 double clk_tck; in esl_stopwatch_Stop() local
107 double clk_tck; in esl_stopwatch_Stop()
117 clk_tck = (double) sysconf(_SC_CLK_TCK); in esl_stopwatch_Stop()
120 w->cpu0.tms_utime - w->cpu0.tms_cutime) / clk_tck; in esl_stopwatch_Stop()
122 w->cpu0.tms_stime - w->cpu0.tms_cstime) / clk_tck; in esl_stopwatch_Stop()
125 clk_tck = (double) sysconf(_SC_CLK_TCK); in esl_stopwatch_Stop()
126 w->elapsed = (double) (t1 - w->t0) / clk_tck; in esl_stopwatch_Stop()
128 w->cpu0.tms_utime - w->cpu0.tms_cutime) / clk_tck; in esl_stopwatch_Stop()
130 w->cpu0.tms_stime - w->cpu0.tms_cstime) / clk_tck; in esl_stopwatch_Stop()
/dports/www/chromium-legacy/chromium-88.0.4324.182/native_client/tests/spec2k/252.eon/
H A Ddiff8 - float clk_tck = (float) sysconf(_SC_CLK_TCK);
9 + float clk_tck = (float) sysconf(2);
11 float ustart_time = time_usage.tms_utime/clk_tck;
12 float sstart_time = time_usage.tms_stime/clk_tck;
/dports/devel/lua-posix/luaposix-35.1/ext/posix/sys/
H A Dtimes.c22 #define pushtimefield(k,x) pushintegerfield((k), ((lua_Integer)x)/clk_tck)
36 static long clk_tck = 0; in pushtms() local
44 if (clk_tck == 0) in pushtms()
45 clk_tck = sysconf(_SC_CLK_TCK); in pushtms()
/dports/shells/ksh2020/ast-ksh2020/src/cmd/ksh93/bltins/
H A Dtimes.c57 long clk_tck = sysconf(_SC_CLK_TCK); in print_cpu_times() local
62 dtime = (double)cpu_times.tms_utime / clk_tck; in print_cpu_times()
65 dtime = (double)cpu_times.tms_stime / clk_tck; in print_cpu_times()
71 dtime = (double)cpu_times.tms_cutime / clk_tck; in print_cpu_times()
74 dtime = (double)cpu_times.tms_cstime / clk_tck; in print_cpu_times()
/dports/security/john/john-1.9.0-jumbo-1/src/yescrypt/
H A Duserom.c222 clock_t clk_tck = sysconf(_SC_CLK_TCK); in main() local
260 } while (end - start < clk_tck * 2); in main()
269 count * clk_tck / (end - start), in main()
270 count * clk_tck / (end_v - start_v), in main()
271 count, (double)(end - start) / clk_tck); in main()
368 } while (end - start < clk_tck); in main()
381 count * clk_tck / (end - start), in main()
382 count * clk_tck / (end_v - start_v), in main()
383 count, (double)(end - start) / clk_tck); in main()
H A Dphc.c88 clock_t clk_tck = sysconf(_SC_CLK_TCK); in print_all_PHS() local
124 (unsigned long long)count * clk_tck / (end - start), in print_all_PHS()
125 (unsigned long long)count * clk_tck / (end_v - start_v), in print_all_PHS()
126 (unsigned long long)count, (double)(end - start) / clk_tck); in print_all_PHS()
/dports/benchmarks/fio/fio-3.29/os/windows/
H A Ddlls.c5 void os_clk_tck(long *clk_tck) in os_clk_tck() argument
22 *clk_tck = 64; in os_clk_tck()
31 *clk_tck = (long) (10000000L / maxRes); in os_clk_tck()
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/
H A Dclock_getres.c43 long int clk_tck = sysconf (_SC_CLK_TCK); in clock_getres() local
45 if (__builtin_expect (clk_tck != -1, 1)) in clock_getres()
51 res->tv_nsec = 1000000000 / clk_tck; in clock_getres()
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/
H A Dclock_getres.c43 long int clk_tck = sysconf (_SC_CLK_TCK); in clock_getres() local
45 if (__builtin_expect (clk_tck != -1, 1)) in clock_getres()
51 res->tv_nsec = 1000000000 / clk_tck; in clock_getres()
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/sys/linux/
H A Dclock_getres.c43 long int clk_tck = sysconf (_SC_CLK_TCK); in clock_getres() local
45 if (__builtin_expect (clk_tck != -1, 1)) in clock_getres()
51 res->tv_nsec = 1000000000 / clk_tck; in clock_getres()
/dports/biology/gmap/gmap-2020-09-12/src/
H A Dstopwatch.c79 long clk_tck = 100; in Stopwatch_stop() local
82 long clk_tck = sysconf(_SC_CLK_TCK); in Stopwatch_stop()
92 return (double) (this->stop_elapsed - this->start_elapsed)/(double) clk_tck; in Stopwatch_stop()

12345