chore: remove time dep (#22665)

* chore: bump time from 0.3.5 to 0.3.6

Bumps [time](https://github.com/time-rs/time) from 0.3.5 to 0.3.6.
- [Release notes](https://github.com/time-rs/time/releases)
- [Changelog](https://github.com/time-rs/time/blob/main/CHANGELOG.md)
- [Commits](https://github.com/time-rs/time/compare/v0.3.5...v0.3.6)

---
updated-dependencies:
- dependency-name: time
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove separate time dependency

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
dependabot[bot]
2022-01-25 16:30:21 -07:00
committed by GitHub
parent 8b1cde83c1
commit 66b44b48a4
5 changed files with 11 additions and 30 deletions

View File

@ -18,4 +18,3 @@ solana-logger = { path = "../logger", version = "=1.10.0" }
solana-program-runtime = { path = "../program-runtime", version = "=1.10.0" }
solana-sdk = { path = "../sdk", version = "=1.10.0" }
solana_rbpf = "=0.2.21"
time = "0.3.5"

View File

@ -22,8 +22,8 @@ use {
fs::File,
io::{Read, Seek, SeekFrom},
path::Path,
time::Instant,
},
time::Instant,
};
#[derive(Serialize, Deserialize, Debug)]
@ -296,7 +296,7 @@ native machine code before execting it in the virtual machine.",
let duration = Instant::now() - start_time;
println!("Result: {:?}", result);
println!("Instruction Count: {}", vm.get_total_instruction_count());
println!("Execution time: {} us", duration.whole_microseconds());
println!("Execution time: {} us", duration.as_micros());
if matches.is_present("trace") {
println!("Trace is saved in trace.out");
let mut file = File::create("trace.out").unwrap();