Hi Paul,
First I should mention that I do understand that you guys have to solve all
problems in such way that calls to Java returns the same result regardless
of the platform. Obviously this is a very though problem considering that
every platform handles things its own way. Having said that, I still find it
very disturbing to see that I cannot get accurate system time when I
desperately need it and I know that it is there waiting for me but java
doesn't let me get it.( ! ) in time like that I'm left with 2 options:
1) write a little dll that gets me the time
2) do what almost all other java developers do:  live with it / complain /

try very hard to forget about it ( this is very hard since the inaccuracy
can have significant effects on animation/sim/...).

I normally go with the first option not minding as much that my app is now
platform dependent ( ! ), but what really bothers me is that other java
developers developing on/for Windows run into the same problem AND Java
hasn't solved this problem yet!

> If anyone has figured out a solution for this issue I'd be very
> interested
> in hearing about it....

* Since just an accurate relative-counter solves all of the problems that we
run into, WinAPI has gave us all we needed.

* I'm not sure if we can compute exact ms since 1st January 1970 using
combination of bios time/date and windowsCounter, but it seems that in the
worst case we will be 1 second off (1000 milliSec). But this will still give
us time in ms. ( date dependency is probably not a good idea either :) )

* does windows let us get bios time in millis?

* may be you should look into making an accurate relative-counter across
platforms. of course, this has its own downfalls.

I wish you (and us :) ) luck.

Take Care,
........................................................
Syrus Mesdaghi          Full Sail Real World Education
AI Course Director      Winter Park, FL
[EMAIL PROTECTED]     www.fullsail.com
........................................................



----- Original Message -----
From: "Paul Byrne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 10, 2001 7:57 PM
Subject: Re: [JAVA3D] fps needed.


> Hi All,
>
> The large time steps returned by System.currentTimeMillis() on the
MS-Windows
> OS is something I've been looking at for a while.
>
> The issue is that under windows there does not seem to be ANY OS call
> (or combination of calls) that can meet the semantics of
currentTimeMillis().
>
> That is return to millisecond accuracy the number of ms since 1st January
1970.
>
> The Windows performance timers etc all give ms (or better) accuracy but
the
> time base starts at 0 when windows was booted. There seems to be no way
> to determine at what time (in ms since 1st January 1970) windows was
booted
> and the performance timers were initialized.
>
> If anyone has figured out a solution for this issue I'd be very interested
> in hearing about it....
>
> Rgds
>
> Paul
>
> ----------------------------------------------------------
> Paul Byrne                      Email : [EMAIL PROTECTED]
> Sun Microsystems                Phone : (650) 786 9926
> Visualization Software Group    Fax   : (650) 786 5852
> ----------------------------------------------------------
>
>
> >Delivered-To: [EMAIL PROTECTED]
> >X-Accept-Language: en
> >MIME-Version: 1.0
> >Content-Transfer-Encoding: 7bit
> >Date: Wed, 11 Jul 2001 09:38:14 +1000
> >From: Justin Couch <[EMAIL PROTECTED]>
> >Subject: Re: [JAVA3D] fps needed.
> >To: [EMAIL PROTECTED]
> >
> >Philip Taylor wrote:
> >
> >> a better choice would be the multimedia timers.
> >>
> >> perhaps the right folk could be pointed out, so this could be
addressed?
> >
> >I believe Sun have been made aware of this for at least a couple of
> >years now. I remember back in the days of the old Berkeley advanced-java
> >list that we were discussing it then (JDK1.1 at least). There were quite
> >a number of Javasoft engineers on that list, so they have been aware of
> >it in the past.
> >
> >That said, I'm not sure that they are going to fix it. I think the
> >standard answer from them is "use JMF TimeBase" if you want to do
> >multimedia.
> >
> >--
> >Justin Couch                         http://www.vlc.com.au/~justin/
> >Freelance Java Consultant                  http://www.yumetech.com/
> >Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
> >-------------------------------------------------------------------
> >"Humanism is dead. Animals think, feel; so do machines now.
> >Neither man nor woman is the measure of all things. Every organism
> >processes data according to its domain, its environment; you, with
> >all your brains, would be useless in a mouse's universe..."
> >                                              - Greg Bear, Slant
> >-------------------------------------------------------------------
> >
>
>===========================================================================
> >To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> >of the message "signoff JAVA3D-INTEREST".  For general help, send email
to
> >[EMAIL PROTECTED] and include in the body of the message "help".
>
>
===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff JAVA3D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to