summaryrefslogtreecommitdiff
path: root/cli/bench
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2023-03-15 12:44:22 +0530
committerGitHub <noreply@github.com>2023-03-15 07:14:22 +0000
commit51649272bd388f14685a47cfe805bd9cdb602240 (patch)
tree86be1cd73d9c7a0d095d5ca82fc4fa756fe45b65 /cli/bench
parent6f9c0a9b7a4afd0d73ab312347427e445c67f6c9 (diff)
perf: do not depend on iana-time-zone (#18088)
Chrono's `clock` feature pulls in `iana-time-zone` which links to macOS core_foundation. This PR itself is not enough to get rid of CoreFoundation. Removal depends on getting rid of security framework, see #18071
Diffstat (limited to 'cli/bench')
-rw-r--r--cli/bench/main.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/bench/main.rs b/cli/bench/main.rs
index 3bf73e78d..a16c65ed4 100644
--- a/cli/bench/main.rs
+++ b/cli/bench/main.rs
@@ -13,6 +13,8 @@ use std::process::Command;
use std::process::Stdio;
use std::time::SystemTime;
+include!("../util/time.rs");
+
mod http;
mod lsp;
@@ -436,8 +438,7 @@ async fn main() -> Result<()> {
env::set_current_dir(test_util::root_path())?;
let mut new_data = BenchResult {
- created_at: chrono::Utc::now()
- .to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
+ created_at: utc_now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true),
sha1: test_util::run_collect(
&["git", "rev-parse", "HEAD"],
None,