ludic/docs/language/time/time-sleep_us.md
Orkuncakilkaya 334469ef61 feat(tools): L10 ludic-fmt enforces a project's style
lint lines in package.ludic - one_statement, max_file_lines, max_function_lines,
max_comment_lines, max_header_lines, paths, baseline - checked by ludic-fmt --check
<files> and ludic-fmt --lint (the project), at the line; a baseline ratchet lets a
rule arrive in a codebase that breaks it (--init-baseline), lowered as it is fixed.
check-impl reads the alias declarations too (it had been blind to every namespace
L6 moved out of the compiler), and eight methods get their pages; a test holds the
formatter to keeping type arguments together (L5).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-24 14:38:35 +03:00

563 B

id name category kind tokens sig tip order ns member
time-sleep_us Time.sleep_us time namespace-method Time.sleep_us Time.sleep_us(us) Waits this many microseconds. 8 Time sleep_us

Suspends the program for about us microseconds - a high-resolution wait, for pacing a loop to a frame rate. No operating system's sleep is exact, so a limiter sleeps most of the wait and spins the last of it.

Parameters:

  • us — how long to wait, in microseconds (a long)
program Paced {
  entry {
    Time.sleep_us(1000)
    print(1)
  }
}