View Issue Details

IDProjectCategoryView StatusLast Update
00003501003.1(2008)/Issue 7System Interfacespublic2013-04-16 13:06
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityCommentTypeError
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectiontime
Page Number2108
Line Number66712
Interp Status---
Final Accepted Text
Summary0000350: time() rationale out of date
DescriptionThe RATIONALE section on the time() page needs to be brought up to
date. It talks about gettimeofday() as if it is not in the standard,
and has no mention of clock_gettime().

The part about times() could also be improved, and the SEE ALSO
section needs some additions.
Desired ActionChange:

    The time() function returns a value in seconds (type time_t) while
    times() returns a set of values in clock ticks (type clock_t).
    Some historical implementations, such as 4.3 BSD, have mechanisms
    capable of returning more precise times (see below). A generalized
    timing scheme to unify these various timing mechanisms has been
    proposed but not adopted.

to:

    The time() function returns a value in seconds while clock_gettime()
    and gettimeofday() return a struct timespec (seconds and nanoseconds)
    and struct timeval (seconds and microseconds), respectively, and
    are therefore capable of returning more precise times. The times()
    function is also capable of more precision than time() as it
    returns a value in clock ticks, although it returns the elapsed
    time since an arbitrary point such as system boot time, not
    since the epoch.

Delete line 66724:

    4.3 BSD includes time() only as an alternate function to the more
    flexible gettimeofday() function.

At line 66732 add clock_gettime(), times(), utimes() and utimensat()
to the SEE ALSO list.
Tagstc1-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2010-11-09 11:38 geoffclare New Issue
2010-11-09 11:38 geoffclare Status New => Under Review
2010-11-09 11:38 geoffclare Assigned To => ajosey
2010-11-09 11:38 geoffclare Name => Geoff Clare
2010-11-09 11:38 geoffclare Organization => The Open Group
2010-11-09 11:38 geoffclare Section => time
2010-11-09 11:38 geoffclare Page Number => 2108
2010-11-09 11:38 geoffclare Line Number => 66712
2010-11-09 11:38 geoffclare Interp Status => ---
2010-11-18 16:33 nick Tag Attached: tc1-2008
2010-11-18 16:34 nick Status Under Review => Resolved
2010-11-18 16:34 nick Resolution Open => Accepted
2013-04-16 13:06 ajosey Status Resolved => Closed