🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2190

Re: Change to time() fn?

#2190
From: Peter Holzer
Date: Fri, 02 Oct 1992 17:15
18 lines
1377 bytes
flaps@csri.toronto.edu (Alan J Rosenthal) writes:

>Well, time_t must be a type which can be cast to and from -1.  So there's no
>reason it couldn't be a struct __timeval, with a special case in the compiler,
>right?
[lots of special cases deleted]

Why not just build an arithmetic type of the required precision into
the compiler (if long or double do not have enough digits)? Not much
more work and you can use it for other things, too (like GCC's long
long).

	Peter
-- 
|    _  | Peter J. Holzer                       | Think of it   |
| |_|_) | Technical University Vienna           | as evolution  |
| | |   | Dept. for Real-Time Systems           | in action!    |
| __/   | hp@vmars.tuwien.ac.at                 |     Tony Rand |
Technical Details
Message-ID: <1992Oct2.171518.9151@email.tuwien.ac.at>
Path: arc1-ca.pugleaf.net!sparky!uunet!email!hp
References: <1992Sep29.154252.5453@ima.isc.com> <1992Sep15.042120.27559@nntpd.lkg.dec.com> <1992Sep17.120636.29070@linus.mitre.org> <1992Sep26.153421.7698@cpio1.fr.mugnet.org> <1992Sep29.134807.21457@jarvis.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.std.c
Path: arc1-ca.pugleaf.net!sparky!uunet!email!hp
From: hp@vmars.tuwien.ac.at (Peter Holzer)
Subject: Re: Change to time() fn?
Message-ID: <1992Oct2.171518.9151@email.tuwien.ac.at>
Sender: news@email.tuwien.ac.at
Nntp-Posting-Host: quasi.vmars.tuwien.ac.at
Organization: Technical University Vienna, Dept. for Realtime Systems, AUSTRIA
References: <1992Sep29.154252.5453@ima.isc.com> <1992Sep15.042120.27559@nntpd.lkg.dec.com> <1992Sep17.120636.29070@linus.mitre.org> <1992Sep26.153421.7698@cpio1.fr.mugnet.org> <1992Sep29.134807.21457@jarvis.csri.toronto.edu>
Date: Fri, 2 Oct 1992 17:15:18 GMT
Lines: 18