summaryrefslogtreecommitdiff
path: root/src/lib/dcpomatic_time.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-12-19 19:59:18 +0100
committerCarl Hetherington <cth@carlh.net>2025-09-03 00:52:11 +0200
commitd18408f2d89897d01d250238bcd5f4438b038948 (patch)
tree2841d2e6396a12df7d72ef234ba9911270d61677 /src/lib/dcpomatic_time.h
parent3be2a770aabfe44d33f5f7509c89dce28cf9f50d (diff)
Add and use Time::identifier().
Diffstat (limited to 'src/lib/dcpomatic_time.h')
-rw-r--r--src/lib/dcpomatic_time.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h
index 8382a7d95..2f788d580 100644
--- a/src/lib/dcpomatic_time.h
+++ b/src/lib/dcpomatic_time.h
@@ -259,6 +259,11 @@ public:
return buffer;
}
+ std::string identifier() const {
+ /* XXX: maybe this should be more carefully considered */
+ return fmt::to_string(_t);
+ }
+
static Time<S, O> from_seconds (double s) {
return Time<S, O> (llrint (s * HZ));
}