View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000350 | 1003.1(2008)/Issue 7 | System Interfaces | public | 2010-11-09 11:38 | 2013-04-16 13:06 |
| Reporter | geoffclare | Assigned To | ajosey | ||
| Priority | normal | Severity | Comment | Type | Error |
| Status | Closed | Resolution | Accepted | ||
| Name | Geoff Clare | ||||
| Organization | The Open Group | ||||
| User Reference | |||||
| Section | time | ||||
| Page Number | 2108 | ||||
| Line Number | 66712 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | |||||
| Summary | 0000350: time() rationale out of date | ||||
| Description | The 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 Action | Change: 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. | ||||
| Tags | tc1-2008 | ||||
| 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 |