diff --git a/src/timer.rs b/src/timer.rs index 1255d48..93d33d4 100644 --- a/src/timer.rs +++ b/src/timer.rs @@ -27,7 +27,7 @@ pub struct Realtime{ offset:Time, } impl Realtime{ - const fn new(offset:Time)->Self{ + pub const fn new(offset:Time)->Self{ Self{offset} } } @@ -38,7 +38,7 @@ pub struct Scaled{ offset:Time, } impl Scaled{ - const fn new(scale:Ratio64,offset:Time)->Self{ + pub const fn new(scale:Ratio64,offset:Time)->Self{ Self{scale,offset} } const fn with_scale(scale:Ratio64)->Self{