diff --git a/src/influx.rs b/src/influx.rs index 12f0337..e2f6aea 100644 --- a/src/influx.rs +++ b/src/influx.rs @@ -205,6 +205,8 @@ impl InfluxWriter { pub fn nanos(&self, d: DateTime) -> i64 { nanos(d) as i64 } + pub fn dur_nanos(&self, d: Duration) -> i64 { dur_nanos(d) as i64 } + pub fn tx(&self) -> Sender> { self.tx.clone() }