From 87866207ec2b126bd186d953b727f009b4f78ddf Mon Sep 17 00:00:00 2001 From: Yuri Edward Date: Wed, 12 Nov 2025 22:01:42 +0100 Subject: [PATCH] Use bp3d-os to provide Instant instead of broken std::time:Instant --- Cargo.toml | 5 ++++- src/profiler/section.rs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4126c1a..1de8585 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bp3d-debug" -version = "1.0.0" +version = "1.0.1" authors = ["Yuri Edward "] edition = "2021" description = "Tracing subscriber implementations for use with BP3D software. Supports traditional logging through bp3d-logger and supports remote profiling through TCP." @@ -11,3 +11,6 @@ keywords = ["bp3d", "tracing"] categories = ["development-tools", "development-tools::debugging", "development-tools::profiling"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] +bp3d-os = { version = "2.2.1", features = ["time"] } diff --git a/src/profiler/section.rs b/src/profiler/section.rs index a10baad..4fead04 100644 --- a/src/profiler/section.rs +++ b/src/profiler/section.rs @@ -30,7 +30,7 @@ use crate::field::FieldSet; use crate::util::Location; use std::num::NonZeroU32; use std::sync::OnceLock; -use std::time::Instant; +use bp3d_os::time::Instant; #[repr(u8)] #[derive(Debug, Copy, Clone, Eq, PartialEq)]