From owner-freebsd-current@FreeBSD.ORG Fri Mar 19 09:01:32 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C56FE16A4CE for ; Fri, 19 Mar 2004 09:01:32 -0800 (PST) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E4BA43D1D for ; Fri, 19 Mar 2004 09:01:32 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i2JH1QLP011580; Fri, 19 Mar 2004 12:01:26 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <405AAC1A.20408@aueb.gr> References: <200403140716.i2E7GDKa007204@dungeon.home> <200403142317.09065.craig@xfoil.gank.org> <405AAC1A.20408@aueb.gr> Date: Fri, 19 Mar 2004 12:01:25 -0500 To: Diomidis Spinellis From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) cc: freebsd-current@freebsd.org Subject: Re: HEADS UP! MAJOR change to FreeBSD/sparc64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Mar 2004 17:01:32 -0000 At 10:15 AM +0200 3/19/04, Diomidis Spinellis wrote: > >"The range and precision of times representable in clock_t and >time_t is implementation-defined." > >So, indeed there is no guarantee made regarding the size of >time_t relative to other basic types. However, time_t must be >an arithmetic type, it can not be e.g. a struct. > >Another interesting possibility that the standard appears to >allow, is to change the *precision* of time_t. For example, >if time_t represented time in two-second intervals ... Not allowed. time_t has to be a value of "seconds". When the standard talks about "precision", it means we might only UPDATE that value every 10 seconds, but the value itself is in seconds. The reason it talks about precision is for the case where time_t is a float. In that case, "1.0 time_t's" is still 1 second, but the implementation might decide to update that value (as returned from time()) only once per second, or every 0.1 seconds, or every 0.0001 seconds. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu