timeval == POSIX == nonportable

Bryce McKinlay bryce@waitaki.otago.ac.nz
Mon Feb 11 19:13:00 GMT 2002


Adam Megacz wrote:

>Um, could we use something other than "struct timeval" for
>_Jv_platform_getTimeOfDay? Struct timeval only exists on POSIX.
>
>Win32 has it (due to winsock), so this isn't urgent, but other
>platforms might not have it.
>
>What's wrong with using a jlong of seconds since the epoch? AFAIK Java
>doesn't have sub-millisecond timing.
>

Yeah. I think changing it so it returns a jlong would be reasonable.

regards

Bryce.




More information about the Java mailing list