oxedyne/fe2o3/fe2o3_text/tests/lint_mutable/hit_timing.rs
340 bytes, 1 run
created by r1870400018:75255, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | use std::time::Duration; |
| 2 | const WAIT: u64 = 30; |
| 3 | const RATE_TIMEOUT_SECS: u64 = 9; |
| 4 | pub fn wait() { |
| 5 | std::thread::sleep(Duration::from_secs(5 * 60)); |
| 6 | let d = Duration::new(30, 0); |
| 7 | let w = Duration::from_secs(WAIT); |
| 8 | tokio::time::sleep(WAIT); |
| 9 | let r = Duration::from_secs(RATE_TIMEOUT_SECS); |
| 10 | let z = Duration::new(0, 0); |
| 11 | } |