This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: timeval == POSIX == nonportable


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.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]