I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way?
harinath_2007
56
Posting Whiz
Recommended Answers
Jump to PostJust set a java.util.Timer to run your method after an initial delay of 30 minutes or whatever.
@stultuske: what are you smoking? Did you miss something out of that code, or was it pure Monty Python?
All 4 Replies
stultuske
1,116
Posting Maven
Featured Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
stultuske
1,116
Posting Maven
Featured Poster
harinath_2007
56
Posting Whiz
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.