lkml.org 
[lkml]   [1999]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [gettimeofday implementation ...]
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.212 / U:0.124 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site