Skip to content

Commit f7e11d3

Browse files
committed
remove stopwatch
1 parent f540007 commit f7e11d3

File tree

3 files changed

+8
-115
lines changed

3 files changed

+8
-115
lines changed

Cargo.lock

Lines changed: 4 additions & 111 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

catalyst-toolbox/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ symmetric-cipher = { git = "https://github.com/input-output-hk/chain-wallet-libs
5959
graphql_client = "0.10"
6060
gag = "1"
6161
vit-servicing-station-lib = { git = "https://github.com/input-output-hk/vit-servicing-station.git", branch = "master" }
62-
stopwatch = "0.0.7"
6362

6463
[dev-dependencies]
6564
rand_chacha = "0.3"

catalyst-toolbox/src/stats/live/monitor.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1+
use std::time::Instant;
2+
13
use super::Error;
24
use crate::stats::live::Harvester;
35
use crate::stats::live::Settings;
46
use jortestkit::console::ProgressBarMode;
57
use jortestkit::load::ProgressBar;
68
use jortestkit::prelude::append;
7-
use stopwatch::Stopwatch;
89

910
pub fn start(harvester: Harvester, settings: Settings, title: &str) -> Result<(), Error> {
1011
let mut progress_bar = ProgressBar::new(1);
1112

1213
println!("{}", title);
1314
jortestkit::load::use_as_monitor_progress_bar(&settings.monitor(), title, &mut progress_bar);
14-
let sw = Stopwatch::start_new();
15+
let start = Instant::now();
1516

1617
loop {
17-
if settings.duration > sw.elapsed().as_secs() {
18+
if settings.duration > start.elapsed().as_secs() {
1819
break;
1920
}
2021

0 commit comments

Comments
 (0)