diff options
| author | Kenny Levinsen <kl@kl.wtf> | 2021-06-20 19:24:55 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2021-06-24 18:21:29 +0200 |
| commit | 04f75e6acc0aa12947be6f6d56ed593bedd4395a (patch) | |
| tree | ee1bc34aecdfc89cbbeedf1ade6186579dc224ab /common | |
| parent | ae55861548e6d5ec049a47d06645bd647a5e1d9b (diff) | |
input: Move get_current_time_msec in from util
get_current_time_msec is only used in cursor.c, so we can move it in and
make it static. This is primarily intended to avoid a symbol collision
with wlroots, which we unfortunately do not have a good solution for
yet.
(cherry picked from commit 80315217f76e923cb19cdb76aaf9a5d177f11f61)
Diffstat (limited to 'common')
| -rw-r--r-- | common/util.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/common/util.c b/common/util.c index 5ea94f48..199f3ee1 100644 --- a/common/util.c +++ b/common/util.c @@ -10,12 +10,6 @@ #include "log.h" #include "util.h" -uint32_t get_current_time_msec(void) { - struct timespec now; - clock_gettime(CLOCK_MONOTONIC, &now); - return now.tv_sec * 1000 + now.tv_nsec / 1000000; -} - int wrap(int i, int max) { return ((i % max) + max) % max; } |
