Skip to content

Commit

Permalink
libstd’s Duration refactor
Browse files Browse the repository at this point in the history
This commit changes the internal representation of Duration from

    pub struct Duraion {
        secs: i64,
        nanos: i32
    }

to

    /// An absolute amount of time, independent of time zones
    /// and calendars with tick precision. A single tick
    /// represents 100 nanoseconds.
    pub struct Duration(pub i64)

Closes rust-lang#18166,rust-lang#18416.
  • Loading branch information
1-more committed Nov 3, 2014
1 parent d1fc2de commit e29d5dd
Show file tree
Hide file tree
Showing 2 changed files with 204 additions and 347 deletions.
Loading

0 comments on commit e29d5dd

Please sign in to comment.