Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 291219 Details for
Bug 428196
CLOCKS_PER_SECOND clearly is not
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
add documentation to times() in glibc texinfo to use sysconf() to get the interval of units in struct tms, rather than the implied CLOCKS_PER_SECOND
glibc-moredocs-times.patch (text/plain), 918 bytes, created by
Scott Mcdermott
on 2008-01-10 01:26:20 UTC
(
hide
)
Description:
add documentation to times() in glibc texinfo to use sysconf() to get the interval of units in struct tms, rather than the implied CLOCKS_PER_SECOND
Filename:
MIME Type:
Creator:
Scott Mcdermott
Created:
2008-01-10 01:26:20 UTC
Size:
918 bytes
patch
obsolete
>diff -ur glibc-20071017T2029.orig/manual/time.texi glibc-20071017T2029/manual/time.texi >--- glibc-20071017T2029.orig/manual/time.texi 2006-11-10 13:10:22.000000000 -0800 >+++ glibc-20071017T2029/manual/time.texi 2008-01-09 17:15:21.000000000 -0800 >@@ -337,7 +337,11 @@ > @comment POSIX.1 > @deftypefun clock_t times (struct tms *@var{buffer}) > The @code{times} function stores the processor time information for >-the calling process in @var{buffer}. >+the calling process in @var{buffer}. Although stored with type >+@code{clock_t}, the values are not in @code{CLOCKS_PER_SECOND} units; >+instead, the number of clock ticks per second can be obtained using >+@code{sysconf(_SC_CLK_TCK)}. Note that this only pertains to the >+values stored in @var{buffer}, not the return value. > > The return value is the calling process' CPU time (the same value you > get from @code{clock()}. @code{times} returns @code{(clock_t)(-1)} to
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 428196
:
291206
| 291219