aboutsummaryrefslogtreecommitdiff
path: root/libbb/sysconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/sysconf.c')
-rw-r--r--libbb/sysconf.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libbb/sysconf.c b/libbb/sysconf.c
index c5fa5e001..4dbffbebd 100644
--- a/libbb/sysconf.c
+++ b/libbb/sysconf.c
@@ -14,3 +14,9 @@ unsigned FAST_FUNC bb_arg_max(void)
return sysconf(_SC_ARG_MAX);
}
#endif
+
+/* Return the number of clock ticks per second. */
+unsigned FAST_FUNC bb_clk_tck(void)
+{
+ return sysconf(_SC_CLK_TCK);
+}