Last active
April 29, 2022 02:36
-
-
Save jayhuang75/32b1cc5c72a3079fb23f597d154ae2de to your computer and use it in GitHub Desktop.
rust-velocity-limit-main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fn main() { | |
| let start = Instant::now(); | |
| let read_path = "./path/input.txt"; | |
| let write_path = "./path/output.txt"; | |
| let limit = Limit{ | |
| daily_max_amount: 5000.00, | |
| weekly_max_amount: 20000.00, | |
| daily_max_load: 5, | |
| }; | |
| let mut new_worker = Worker::new(limit); | |
| new_worker.load_transactions(read_path); | |
| new_worker.process(); | |
| new_worker.file_writer(write_path); | |
| let duration = start.elapsed(); | |
| println!("duration total execution time: {:?}",duration); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment