Gather all time unit conversion helpers in one place

We had time unit conversion helpers (e.g. us2ms(), ns2us(), etc) in
multiple places. Clean that up by moving them all to a common file. That
file is clutter-private.h, as it's accessible by both from clutter/ and
src/.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285
This commit is contained in:
Jonas Ådahl
2020-05-20 21:46:23 +02:00
parent bb73038a27
commit f086eafe57
4 changed files with 25 additions and 42 deletions

View File

@ -168,18 +168,6 @@ gboolean clutter_test_check_color_at_point (ClutterActor
const ClutterColor *color,
ClutterColor *result);
static inline uint64_t
us (uint64_t us)
{
return us;
}
static inline uint64_t
ms2us (uint64_t ms)
{
return us (ms * 1000);
}
G_END_DECLS
#endif /* __CLUTTER_TEST_UTILS_H__ */