Skip to content

Commit be7c46b

Browse files
committed
Rust: Create start timer at the top of main
1 parent 392fba6 commit be7c46b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎rust/extractor/src/main.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ fn cwd() -> anyhow::Result<AbsPathBuf> {
240240
}
241241

242242
fn main() -> anyhow::Result<()> {
243+
let start = Instant::now();
243244
let config = config::Config::extract().context("failed to load configuration")?;
244245
let inputs = if config.qltest {
245246
qltest::prepare(&config)?
@@ -254,7 +255,6 @@ fn main() -> anyhow::Result<()> {
254255
} else {
255256
Vec::new()
256257
};
257-
let start = Instant::now();
258258
let (flame_layer, _flush_guard) = if let Some(path) = &config.logging_flamegraph {
259259
tracing_flame::FlameLayer::with_file(path)
260260
.ok()

0 commit comments

Comments
 (0)