summaryrefslogtreecommitdiff
path: root/libs/hwui/utils/TimeUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/utils/TimeUtils.h')
-rw-r--r--libs/hwui/utils/TimeUtils.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/hwui/utils/TimeUtils.h b/libs/hwui/utils/TimeUtils.h
index 8d42d7e55521..ce181b766841 100644
--- a/libs/hwui/utils/TimeUtils.h
+++ b/libs/hwui/utils/TimeUtils.h
@@ -21,10 +21,18 @@
namespace android {
namespace uirenderer {
+constexpr nsecs_t operator"" _s (unsigned long long s) {
+ return seconds_to_nanoseconds(s);
+}
+
constexpr nsecs_t operator"" _ms (unsigned long long ms) {
return milliseconds_to_nanoseconds(ms);
}
+constexpr nsecs_t operator"" _us (unsigned long long us) {
+ return microseconds_to_nanoseconds(us);
+}
+
} /* namespace uirenderer */
} /* namespace android */