We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f169f9c commit 9b521b3Copy full SHA for 9b521b3
examples/fib.rs
@@ -17,7 +17,7 @@ async fn fibsum(req: Request<()>) -> tide::Result<String> {
17
// Compute the nth number in the fibonacci sequence
18
let fib_n = fib(n);
19
// Stop the stopwatch
20
- let duration = Instant::now().duration_since(start).as_secs();
+ let duration = start.elapsed().as_secs();
21
// Return the answer
22
let res = format!(
23
"The fib of {} is {}.\nIt was computed in {} secs.\n",
0 commit comments