Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

sleep

How accurate is python’s time.sleep()?

August 20, 2022 by Magenaut

I can give it floating point numbers, such as

Categories Python, Q&A Tags python, sleep, time Leave a comment

tkinter and time.sleep

August 20, 2022 by Magenaut

I am trying to delete text inside a text box after waiting 5 seconds, but instead the program wont run and does sleep over everything else. Also is there a way for me to just make my textbox sleep so i can run other code while the text is frozen?

Categories Python, Q&A Tags elapsedtime, python, sleep, time, tkinter Leave a comment

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

August 19, 2022 by Magenaut

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

Categories Python, Q&A Tags python, sleep, timer Leave a comment

time.sleep — sleeps thread or process?

August 17, 2022 by Magenaut

In Python for *nix, does time.sleep() block the thread or the process?

Categories Python, Q&A Tags multithreading, python, python-internals, sleep, time Leave a comment

Python time.sleep() vs event.wait()

August 11, 2022 by Magenaut

I want to perform an action at a regular interval in my multi-threaded Python application. I have seen two different ways of doing it

Categories Python, Q&A Tags multithreading, python, sleep Leave a comment

How do I start a Cron job 1 min after @reboot?

August 10, 2022 by Magenaut

I need my script to be executed a minute after each reboot. When I apply @reboot in my crontab it is too early for my script – I want the script to be executed after all other tasks that are routinely run on reboot. How might I run the script sometime after reboot?

Categories Q&A, Unix & Linux Tags cron, sleep Leave a comment

sleep, wait and Ctrl+C propagation

August 10, 2022 by Magenaut

If I have the following shell script

Categories Q&A, Unix & Linux Tags bash, sleep, wait Leave a comment

How to run systemd user service to trigger on sleep (aka. suspend, hibernate)?

August 9, 2022 by Magenaut

Based on various sources I have cobbled together ~/.config/systemd/user/screenlock.service:

Categories Q&A, Unix & Linux Tags arch-linux, hibernate, sleep, suspend, systemd Leave a comment

Avoiding busy waiting in bash, without the sleep command

August 6, 2022 by Magenaut

I know I can wait on a condition to become true in bash by doing:

Categories Q&A, Unix & Linux Tags bash, shell-script, sleep Leave a comment
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress