From bc34ee777985cad61437903a814a5582a014ba7b Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 17 Apr 2014 22:10:56 +0200 Subject: [PATCH] core: add code comment to nm_utils_get_monotonic_timestamp_*s() functions Signed-off-by: Thomas Haller --- src/NetworkManagerUtils.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/NetworkManagerUtils.c b/src/NetworkManagerUtils.c index d8273362b5..3bf20625b2 100644 --- a/src/NetworkManagerUtils.c +++ b/src/NetworkManagerUtils.c @@ -1058,6 +1058,9 @@ monotonic_timestamp_get (struct timespec *tp) * * The returned value will start counting at an undefined point * in the past and will always be positive. + * + * All the nm_utils_get_monotonic_timestamp_*s functions return the same + * timestamp but in different scales (nsec, usec, msec, sec). **/ gint64 nm_utils_get_monotonic_timestamp_us (void) @@ -1082,6 +1085,9 @@ nm_utils_get_monotonic_timestamp_us (void) * * The returned value will start counting at an undefined point * in the past and will always be positive. + * + * All the nm_utils_get_monotonic_timestamp_*s functions return the same + * timestamp but in different scales (nsec, usec, msec, sec). **/ gint64 nm_utils_get_monotonic_timestamp_ms (void) @@ -1106,6 +1112,9 @@ nm_utils_get_monotonic_timestamp_ms (void) * * This value wraps after roughly 68 years which should be fine for any * practical purpose. + * + * All the nm_utils_get_monotonic_timestamp_*s functions return the same + * timestamp but in different scales (nsec, usec, msec, sec). **/ gint32 nm_utils_get_monotonic_timestamp_s (void)