Skip to content

Commit

Permalink
fixup! Ability to enable/disable task timings globally
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 committed Oct 24, 2024
1 parent c48df92 commit 5ede84e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/task.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ede84e

Please sign in to comment.