File: ref_c_struct__tms.xml

package info (click to toggle)
rubybook 0.2-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,252 kB
  • ctags: 1,043
  • sloc: xml: 60,486; makefile: 25
file content (66 lines) | stat: -rw-r--r-- 1,886 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<ppdoc>
<copyright>
    Copyright (c) 2001 by Addison Wesley Longman.  This
    material may be distributed only subject to the terms and
    conditions set forth in the Open Publication License, v1.0 or
    later (the latest version is presently available at
    http://www.opencontent.org/openpub/).
</copyright>
<class name="Struct::Tms" super="Struct" type="class">
<p/>
  This structure is returned by <ccm><file>time</file><front>Time</front><back>times</back><mref>times</mref></ccm>.  It holds
  information on process times on those platforms that support it.
  Not all values are valid on all platforms.    
<p/>
  This structure contains the following instance variables and the
  corresponding accessors:
<p/>
  <table>
<p/>
  <toprule/><tr>
  <td><tt>utime</tt></td>
  <td>Amount of User CPU time, in seconds</td>
</tr>
<tr>
  <td><tt>stime</tt></td>
  <td>Amount of System CPU time, in seconds</td>
</tr>
<tr>
  <td><tt>cutime</tt></td>
  <td>Completed child processes' User CPU time, in
      seconds (always 0 on Windows NT)</td>
</tr>
<tr>
  <td><tt>cstime</tt></td>
  <td>Completed child processes' System CPU time, in
      seconds (always 0 on Windows NT)</td>
</tr>
<bottomrule/></table>
<p/>
  See also <classname>Struct</classname> on page 385 and <ccm><file>time</file><front>Time</front><back>times</back><mref>times</mref></ccm>
  on page 398.
<p/>
<codefragment>
<fullcode><![CDATA[        t = Time.times
        [ t.utime, t.stime]
        [ t.cutime, t.cstime ]
]]></fullcode><rubycode>
<tr>
<td colspan="3"><tt>t<nbsp/>=<nbsp/>Time.times</tt></td>
</tr>
<tr>
  <td><tt>[<nbsp/>t.utime,<nbsp/>t.stime]</tt></td>
  <td>&#187;</td>
  <td><tt>[0.01,<nbsp/>0.0]</tt></td>
</tr>
<tr>
  <td><tt>[<nbsp/>t.cutime,<nbsp/>t.cstime<nbsp/>]</tt></td>
  <td>&#187;</td>
  <td><tt>[0.0,<nbsp/>0.0]</tt></td>
</tr>
</rubycode>
<p/>
</codefragment>
<p/>
</class>
</ppdoc>