From 5ede84e76c6f637f02c49f076f5d77a42616dcd7 Mon Sep 17 00:00:00 2001 From: Nick Robinson Date: Thu, 24 Oct 2024 22:06:31 +0100 Subject: [PATCH] fixup! Ability to enable/disable task timings globally --- base/task.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/task.jl b/base/task.jl index 77631b19393887..3ba18fb8f163a2 100644 --- a/base/task.jl +++ b/base/task.jl @@ -1142,7 +1142,7 @@ end # yield to a task, throwing an exception in it function throwto(t::Task, @nospecialize exc) - if t.first_enqueued_at == 0 + if t.is_timing_enabled && t.first_enqueued_at == 0 t.first_enqueued_at = time_ns() end t.result = exc