diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-11 14:14:47 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-11 14:14:47 +0000 |
| commit | 78db20ae144115e6eaea6e7bd239e0ec06baf082 (patch) | |
| tree | f68d3ceee83fc67f9a85cecc0c8a09b2f92790bb /src/dcp_time.h | |
| parent | 67a414dc3826761c8933640e85560644f5f02310 (diff) | |
Add Time::to_seconds.
Diffstat (limited to 'src/dcp_time.h')
| -rw-r--r-- | src/dcp_time.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dcp_time.h b/src/dcp_time.h index 23f860cf..c7391e63 100644 --- a/src/dcp_time.h +++ b/src/dcp_time.h @@ -59,6 +59,8 @@ public: , tcr (tcr_) {} + Time (double seconds); + Time (std::string time, int tcr); int h; ///< hours @@ -68,6 +70,7 @@ public: int tcr; ///< timecode rate: the number of editable units per second. std::string to_string () const; + double to_seconds () const; int64_t to_editable_units (int tcr_) const; private: |
