Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
now waits 20 sec after completion
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAF0e committed Oct 23, 2022
1 parent 292be96 commit a37726c
Show file tree
Hide file tree
Showing 31 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pop_sim_rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ use rand::Rng;
use std::str;
use std::time::Instant;
use indicatif::*;
// use std::thread;
use std::{thread, time};
// use plotters;

pub trait Iterator {
Expand Down Expand Up @@ -132,10 +132,11 @@ fn main() {

let duration = start.elapsed();

sim.print_people();
// sim.print_people();

println!("People: {:?}", sim.people.len());

// Time took to complete code
println!("Time taken to calculate: {:?}", duration);
thread::sleep(time::Duration::from_secs(20));
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit a37726c

Please sign in to comment.