mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-21 07:30:07 +01:00
utils/core: add NM_UTILS_NS_PER_MSEC macro
This commit is contained in:
parent
2778d257cc
commit
ab2456493d
1 changed files with 3 additions and 0 deletions
|
|
@ -317,6 +317,9 @@ int nm_utils_cmp_connection_by_autoconnect_priority (NMConnection **a, NMConnect
|
||||||
void nm_utils_log_connection_diff (NMConnection *connection, NMConnection *diff_base, guint32 level, guint64 domain, const char *name, const char *prefix);
|
void nm_utils_log_connection_diff (NMConnection *connection, NMConnection *diff_base, guint32 level, guint64 domain, const char *name, const char *prefix);
|
||||||
|
|
||||||
#define NM_UTILS_NS_PER_SECOND ((gint64) 1000000000)
|
#define NM_UTILS_NS_PER_SECOND ((gint64) 1000000000)
|
||||||
|
#define NM_UTILS_NS_PER_MSEC ((gint64) 1000000)
|
||||||
|
#define NM_UTILS_NS_TO_MSEC_CEIL(nsec) (((nsec) + (NM_UTILS_NS_PER_MSEC - 1)) / NM_UTILS_NS_PER_MSEC)
|
||||||
|
|
||||||
gint64 nm_utils_get_monotonic_timestamp_ns (void);
|
gint64 nm_utils_get_monotonic_timestamp_ns (void);
|
||||||
gint64 nm_utils_get_monotonic_timestamp_us (void);
|
gint64 nm_utils_get_monotonic_timestamp_us (void);
|
||||||
gint64 nm_utils_get_monotonic_timestamp_ms (void);
|
gint64 nm_utils_get_monotonic_timestamp_ms (void);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue