Re: [gettimeofday implementation ...]

Richard B. Johnson (root@chaos.analogic.com)
Fri, 15 Oct 1999 07:40:56 -0400 (EDT)


On Fri, 15 Oct 1999, Subramanya Srinivas C wrote:

>
>
> Hi,
>
> I need to implement a routine similar to "gettimeofday"
> of LINUX on VMS platform.
>
> If anybody has pointers to the implementation of
> "gettimeofday" routine or the algorithm of it, please
> mail me immediately. Prompt reply would be highly
> appreciated.
>

VMS has quadword time (already in microseconds). It should be easy
to make a wrapper around the VMS library call. sys$gettim(&timeaddr);
timeaddr is 64-bit time in microseconds.

gettimeofday uses struct timeval {long seconds, long microseconds}.
The timezone is not handled by the kernel.

Cheers,
Dick Johnson
**** FILE SYSTEM WAS MODIFIED ****
Penguin : Linux version 2.3.13 on an i686 machine (400.59 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/