Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3935

Re: Problem with Swing Ti

From "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
Subject Re: Problem with Swing Ti
Message-ID <BtSdnenTB9N6JgDVnZ2dnUVZ_i2dnZ2d@comcast.com> (permalink)
Newsgroups comp.lang.java.gui
References <3f05236e-f599-41ec-9ac9-2ff561d6b7b9@s50g2000hsb.googlegroups.co
Date 2011-04-27 15:47 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui

<ifarberov@lsplab.com> wrote in message 
news:3f05236e-f599-41ec-9ac9-2ff561d6b7b9@s50g2000hsb.googlegroups.com...
> After reading some of the above suggestions I have developed a new
> theory of what may be going on.  It seems that if a computer clock is
> adjusted backwards while swing timer is used, the timer stops firing
> action events.  And as a matter of fact my program does speed up
> system clock.  Once in a while the computer clock in syncronized with
> the network clock, which may push my computer clock back.

Just write your own timer and timer queue classes using
nanoTime() and the nano version of wait().

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | Next | Find similar | Unroll thread


Thread

Re: Problem with Swing Ti "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:47 +0000

csiph-web