This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: timeval == POSIX == nonportable
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: Adam Megacz <gcj at lists dot megacz dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 12 Feb 2002 15:42:06 +1300
- Subject: Re: timeval == POSIX == nonportable
- References: <86lmdzfnlt.fsf@megacz.com>
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.