🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #4465

Re: gettimeofday

#4465
From: Stephen Baynes
Date: Thu, 14 Dec 1995 08:44
18 lines
1105 bytes
D. Moylan (dmoylan@upsdev) wrote:
: I'm having trouble with the C function gettimeofday in a 2M executable file.
<snip>

: I'm not wedded to gettimeofday if there is a function which can give me a wall
: time with precision in microseconds.

gettimeofday is not an ANSI C function (nor is it POSIX or XOPEN as far as I
know).

The only way you might get access to subsecond resolution in ANSI C is with 
difftime but there are no guarentees.

--
Stephen Baynes                              baynes@mulsoc2.serigate.philips.nl
Philips Semiconductors Ltd
Southampton                                 My views are my own.
United Kingdom
Technical Details
Message-ID: <DJKIy6.6Js@ukpsshp1.serigate.philips.nl>
Path: arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynes
References: <4ak2t4$t54@post.gsfc.nasa.gov>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!phcoms4.seri.philips.nl!panther!baynes
From: baynes@ukpsshp1.serigate.philips.nl (Stephen Baynes)
Subject: Re: gettimeofday
Sender: news@ukpsshp1.serigate.philips.nl (account for localnews)
Message-ID: <DJKIy6.6Js@ukpsshp1.serigate.philips.nl>
Date: Thu, 14 Dec 1995 08:44:30 GMT
References: <4ak2t4$t54@post.gsfc.nasa.gov>
Organization: Philips Semiconductors, Southampton, UK
X-Newsreader: TIN [version 1.2 PL2]