From 5e1095c895cbb9d741d2be1e4a513c23faae10a3 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 29 Jan 2024 10:49:59 -0600 Subject: [PATCH] use real time not "cpu time" --- oizys/default.nix | 4 ++-- oizys/oizys.nim | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/oizys/default.nix b/oizys/default.nix index 3094cd9..e21b781 100644 --- a/oizys/default.nix +++ b/oizys/default.nix @@ -1,8 +1,8 @@ { buildNimPackage, }: -buildNimPackage (_final: _prev: { +buildNimPackage { pname = "oizys"; version = "unstable"; src = ./.; -}) +} diff --git a/oizys/oizys.nim b/oizys/oizys.nim index 5e1617e..248908a 100644 --- a/oizys/oizys.nim +++ b/oizys/oizys.nim @@ -57,7 +57,7 @@ proc dry(c: OizysContext) = execQuit "nix build " & c.systemFlakePath & " --dry-run" proc cache(c: OizysContext) = - let start = cpuTime() + let start = now() let code = execCmd """ cachix watch-exec """ & c.cache & """ \ -- \ @@ -65,7 +65,7 @@ proc cache(c: OizysContext) = --print-build-logs \ --accept-flake-config """ - let duration = (cpuTime() - start) + let duration = (now() - start) if code != 0: error "faile to build configuration for: ", c.host