Part of the NTest library. Add the timeout attribute to the rust test framework using procedural macros.
This example will not panic:
```rust
fn notimeout() { let fiftymillis = time::Duration::frommillis(50); thread::sleep(fiftymillis); } ```
This example will panic. The function panics after 10 milliseconds:
```rust
fn timeout() {
let fiftymillis = time::Duration::frommillis(50);
thread::sleep(fifty_millis);}rust
}
```
For more examples and information read the documentation.