mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 22:40:35 +01:00
glib-aux: add nm_utils_get_monotonic_timestamp_usec_cached() helper
This commit is contained in:
parent
41fdbd8831
commit
64326a42a9
1 changed files with 6 additions and 0 deletions
|
|
@ -56,6 +56,12 @@ nm_utils_get_monotonic_timestamp_nsec_cached(gint64 *cache_now)
|
|||
return (*cache_now) ?: (*cache_now = nm_utils_get_monotonic_timestamp_nsec());
|
||||
}
|
||||
|
||||
static inline gint64
|
||||
nm_utils_get_monotonic_timestamp_usec_cached(gint64 *cache_now)
|
||||
{
|
||||
return (*cache_now) ?: (*cache_now = nm_utils_get_monotonic_timestamp_usec());
|
||||
}
|
||||
|
||||
static inline gint64
|
||||
nm_utils_get_monotonic_timestamp_msec_cached(gint64 *cache_now)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue