Skip to content

Commit fd77695

Browse files
committed
add elasped time of proving to log content
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent 852cc71 commit fd77695

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

modules/remote-attestation/src/zkdcap.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ pub fn run_zkdcap_ra(
6666
);
6767
}
6868

69-
info!("proving with prover mode: {:?}", prover_mode);
69+
info!("proving with prover mode: {}", prover_mode);
70+
let now = std::time::Instant::now();
7071
let prover_info = prove(
7172
&prover_mode,
7273
build_env(
@@ -76,7 +77,11 @@ pub fn run_zkdcap_ra(
7677
)?,
7778
elf,
7879
)?;
79-
info!("proving done: stats: {:?}", prover_info.stats);
80+
info!(
81+
"proving done: elapsed={}secs stats={:?}",
82+
now.elapsed().as_secs(),
83+
prover_info.stats
84+
);
8085

8186
prover_info
8287
.receipt

0 commit comments

Comments
 (0)