About 259 results
Open links in new tab
  1. Python sleep (): How to Add Time Delays to Your Code

    Python has built-in support for putting your program to sleep. The time module has a function sleep() that you can use to suspend execution of the calling thread for however many seconds you specify. …

  2. time.sleep() in Python - GeeksforGeeks

    Jul 11, 2025 · Python time sleep () function suspends execution for the given number of seconds. Syntax of time sleep () Syntax : sleep (sec) Parameters : sec : Number of seconds for which the …

  3. timeTime access and conversions — Python 3.14.5 documentation

    While this function normally returns non-decreasing values, it can return a lower value than a previous call if the system clock has been set back between the two calls.

    Missing:
    • sleep function
    Must include:
  4. Python sleep () (With Examples) - Programiz

    In the tutorial, we will learn about the sleep () method with the help of examples.

  5. How do I get my program to sleep for 50 milliseconds?

    Dec 18, 2008 · It is extremely unlikely that the python code base will round sleep (0.05) into 2 system clock ticks. It will mostly likely request 3 clock ticks because that's the right answer.

  6. Python time.sleep (): How to Pause Execution in Python Scripts

    Jan 26, 2026 · Learn how to use Python’s time.sleep () function to pause execution in your scripts. Understand its syntax, use cases, and best practices with examples

  7. Python Sleep(): What It Is and When to Use It - Stackify

    Dec 3, 2024 · The Python sleep () function is part of the time module and used to pause the execution of a program for a specified amount of time. Python sleep () is essential when managing time-sensitive …

  8. Python time.sleep (): How to Delay Code Execution - phoenixNAP

    Apr 30, 2025 · This guide showed how to use the time.sleep() Python function to delay code execution through examples. It also explained when to use it and alternatives for different situations.

  9. Beyond the Pause: Exploring the Inner Workings of Python’s `sleep()`

    In this post, we’ll peel back those layers, explore different types of sleep, and uncover why Python’s sleep () might last longer than you expect—but never less.

  10. Python Sleep () Method | Docs With Examples - Hackr

    Mar 5, 2025 · The Python sleep () function pauses program execution for a specified time. Learn how to use the time.sleep () method with examples, including loops, countdown timers, and handling delays …