Jump to content


A Weird Clock Program


  • Please log in to reply
2 replies to this topic

#1 linkxs

linkxs

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 23 September 2011 - 07:06 PM

Hey guys, I'm a beginner in java. I'm trying to figure out a way to make a clock, but not one that would call on the computer's clock. Is there a way for java to calculate it by itself?

My end result would be a modified clock, where one second would be .84 of a second. I guess I could merely calculate it out of computer's clock, but if there's a way for my program to calculate time, I'd like it more.

Thanks for your help! :)

#2 Kraicheck

Kraicheck

    Advanced Member

  • Members
  • PipPipPip
  • 884 posts
  • Gender:Male
  • Location:Belgium

Posted 26 September 2011 - 08:14 PM

How exactly do you expect this to work without the computer's clock?
You can't just calculate time.

#3 linkxs

linkxs

    Newbie

  • Members
  • Pip
  • 7 posts

Posted 26 September 2011 - 11:05 PM

 Kraicheck, on 26 September 2011 - 08:14 PM, said:

How exactly do you expect this to work without the computer's clock?
You can't just calculate time.
That's what I'm asking, whether there's a way to do that. I actually ran into Timer method, that might be usable for this.