document clockid_t helper
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 15:06:25 +0000 (17:06 +0200)
committerPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 4 Apr 2019 15:06:25 +0000 (17:06 +0200)
src/timefunc.cpp

index b486de1..e41308f 100644 (file)
@@ -1019,6 +1019,18 @@ namespace clock {
 
     namespace {
 
+        /**
+         * @brief         <b>For internal use only</b>. 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