timeval == POSIX == nonportable

Tom Tromey tromey@redhat.com
Mon Feb 11 20:28:00 GMT 2002

>>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:

Adam> Um, could we use something other than "struct timeval" for
Adam> _Jv_platform_getTimeOfDay? Struct timeval only exists on POSIX.

I decided to do this since first it was simpler and second platforms
without struct timeval can simply define it.

Adam> What's wrong with using a jlong of seconds since the epoch? AFAIK Java
Adam> doesn't have sub-millisecond timing.

Probably nothing.


More information about the Java mailing list