Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Mathlib/Util/SleepHeartbeats.lean
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ def sleepAtLeastHeartbeats (n : Nat) : IO Unit := do
elab "sleep_heartbeats " n:num : tactic => do
match Syntax.isNatLit? n with
| none => throwIllFormedSyntax
/- as this is a user facing command we multiply the user input by 1000 to match the maxHeartbeats
option -/
/-
We multiply by `1000` to convert the user-facing heartbeat count to the
internal heartbeat counter used by `IO.getNumHeartbeats`.
-/
| some m => sleepAtLeastHeartbeats (m * 1000)

example : 1 = 1 := by
Expand Down
Loading