diff options
Diffstat (limited to 'src/reader.rs')
-rw-r--r-- | src/reader.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/reader.rs b/src/reader.rs index fd87cd5..ff5f7f9 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -46,4 +46,11 @@ impl<R: tokio::io::AsyncRead> Reader<R> { } } } + + /// How much the timestamps in this file should be offset by. + /// + /// See `Parser::offset`. + pub fn offset(&self) -> Option<std::time::Duration> { + self.parser.offset() + } } |