| 1 |
# web-sys: `performance.now` |
| 2 |
|
| 3 |
[View full source code][code] or [view the compiled example online][online] |
| 4 |
|
| 5 |
[online]: https://rustwasm.github.io/wasm-bindgen/exbuild/performance/ |
| 6 |
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/performance |
| 7 |
|
| 8 |
Want to profile some Rust code in the browser? No problem! You can use the |
| 9 |
`performance.now()` API and friends to get timing information to see how long |
| 10 |
things take. |
| 11 |
|
| 12 |
## `src/lib.rs` |
| 13 |
|
| 14 |
```rust |
| 15 |
{{#include ../../../examples/performance/src/lib.rs}} |
| 16 |
``` |