rename RawTime to AbsoluteTime

This commit is contained in:
2025-01-08 01:15:45 -08:00
parent 8ad5d28e51
commit a967f31004
3 changed files with 13 additions and 15 deletions

@ -6,7 +6,7 @@ pub use ratio_ops::ratio::{Ratio,Divide};
/// specific example of a "default" time type
#[derive(Clone,Copy,Hash,Eq,PartialEq,PartialOrd,Debug)]
pub enum TimeInner{}
pub type RawTime=Time<TimeInner>;
pub type AbsoluteTime=Time<TimeInner>;
#[derive(Clone,Copy,Hash,Eq,PartialEq,PartialOrd,Debug)]
pub struct Time<T>(i64,core::marker::PhantomData<T>);
@ -148,9 +148,7 @@ impl<T> core::ops::Mul<Time<T>> for Planar64{
#[cfg(test)]
mod test_time{
use super::*;
#[derive(Clone,Copy,Hash,Eq,PartialEq,PartialOrd,Debug)]
struct Test;
type Time=super::Time<Test>;
type Time=super::AbsoluteTime;
#[test]
fn time_from_planar64(){
let a:Time=Planar64::from(1).into();