From 76a5f03b53e4bb821d1ca91a8c8aa4387636e850 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Thu, 4 Apr 2019 17:06:25 +0200 Subject: [PATCH] document clockid_t helper --- src/timefunc.cpp | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/timefunc.cpp b/src/timefunc.cpp index b486de1..e41308f 100644 --- a/src/timefunc.cpp +++ b/src/timefunc.cpp @@ -1019,6 +1019,18 @@ namespace clock { namespace { + /** + * @brief For internal use only. Translates clock + * specification flags to kernel clock types. + * + * @param id Master clock id: \c mono, \c real, \c boot, or \c + * cpu. + * @param var Variant of clock if appropriate: \c raw, \c exact, \c + * process, or \c thread. Use \c dflt for the base + * variant. + * + * @return The clock id for using with kernel APIs. + */ static inline clockid_t clockid_of_flags (const enum type::id id, const enum type::variant var) NOEXCEPT -- 1.7.1