mirror of
https://github.com/eth-act/ere.git
synced 2026-02-19 11:54:42 -05:00
Include OpenVM execution cycles count (#158)
This commit is contained in:
@@ -111,15 +111,16 @@ impl zkVM for EreOpenVM {
|
||||
serialize_inputs(&mut stdin, inputs);
|
||||
|
||||
let start = Instant::now();
|
||||
let public_values = self
|
||||
let (public_values, (_cost, cycles)) = self
|
||||
.cpu_sdk()?
|
||||
.execute(self.app_exe.clone(), stdin)
|
||||
.execute_metered_cost(self.app_exe.clone(), stdin)
|
||||
.map_err(|e| OpenVMError::from(ExecuteError::Execute(e)))?;
|
||||
|
||||
Ok((
|
||||
public_values,
|
||||
ProgramExecutionReport {
|
||||
execution_duration: start.elapsed(),
|
||||
total_num_cycles: cycles,
|
||||
..Default::default()
|
||||
},
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user