This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes is there any sleep() , delay ,.... method which delay execution of application ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "is there any sleep() , delay ,.... method which delay execution of application ?" Watch "is there any sleep() , delay ,.... method which delay execution of application ?" New topic
Author

is there any sleep() , delay ,.... method which delay execution of application ?

raminaa niilian
Ranch Hand

Joined: Jul 14, 2005
Posts: 551
Hi
Thank you for reading my post
I need to have a Sleep() or delay() or any other function which could delay execution of my application
for some MicroSecond , i should tell that i need to have delay in MicroSeconds .
can some one help me with this problem ?


Thank you
Rick O'Shay
Ranch Hand

Joined: Sep 19, 2004
Posts: 531
This is really a beginner's questions. In general, google is faster than news groups or discussion forums; so try "sleep java", assuming you do not have an introductory Java book handy.
[ February 19, 2006: Message edited by: Rick O'Shay ]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Moving to Java in General (Beginner).


[Jess in Action][AskingGoodQuestions]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

There is a static method "sleep" in the Thread class which does what you want.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: is there any sleep() , delay ,.... method which delay execution of application ?
 
Similar Threads
Android - Using Custom Views to Read Database Data - Slows Down Drastically!
Jxam #45
basic concept level question regarding threads
is there any sleep() , delay ,.... method which delay execution of application ?
Thread-based timer versus Timer Class-based timer