Simple function to get the system time in nanoseconds relative to an unspecified epoch. Pretty much the same functionality as Java's System.nanoTime()
.
The code was simply copied from rust-lang/time and cleaned up to just provide the nano_time function with no unneccessary dependencies.
```rust extern crate nano_time;
fn main() { let start = nanotime::nanotime(); dosomething(); let end = nanotime::nanotime(); println!("dosomething() took {} nanoseconds.", (end-start)); } ```