rust-lang/rust — pull request #16573 by ruud-v-a (2014-08-18 11:17:19+00:00)
Title: libtime: Implement Add and Sub for Timespec.

This implements `Add` and `Sub` for `Timespec`, which enables `Timespec` to be used as a time span. For example:

```rust
let begin = get_time();
// Do some stuff.
let end = get_time();
let delta = end - begin;
println!("Doing stuff took {}.{} seconds.", delta.sec, delta.nsec);
```
This resolves one of the points mentioned in #2153.