Skip to content

Commit

Permalink
add elasped time of proving to log content
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Feb 3, 2025
1 parent 852cc71 commit fd77695
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions modules/remote-attestation/src/zkdcap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ pub fn run_zkdcap_ra(
);
}

info!("proving with prover mode: {:?}", prover_mode);
info!("proving with prover mode: {}", prover_mode);
let now = std::time::Instant::now();
let prover_info = prove(
&prover_mode,
build_env(
Expand All @@ -76,7 +77,11 @@ pub fn run_zkdcap_ra(
)?,
elf,
)?;
info!("proving done: stats: {:?}", prover_info.stats);
info!(
"proving done: elapsed={}secs stats={:?}",
now.elapsed().as_secs(),
prover_info.stats
);

prover_info
.receipt
Expand Down

0 comments on commit fd77695

Please sign in to comment.