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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
.\" Copyright (c) 2006 by Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Japanese Version Copyright (c) 2006 Yuichi SATO
.\" all rights reserved.
.\" Translated 2006-07-23 by Yuichi SATO <ysato444@yahoo.co.jp>, LDP v2.36
.\" Updated 2007-05-04, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v2.44
.\"
.TH TIME 7 2006-04-28 "Linux" "Linux Programmer's Manual"
.SH ̾
time \- ֤γ
.SH
.SS "» (real time) ȥץ"
\fI»\fRϡλפä֤롣
λȤϡɸŪʻ
(ε (Epoch) ȥ) 䡢
ץΰˤ벿餫λ (㤨Сϻ) Ǥ
.RI ( "в" )
\fIץ\fRϡץˤäƻȤ줿 CPU ֤롣
¿ξ硢\fI桼\fR֤\fIƥ\fR֤ʬ롣
桼 CPU ֤ϡɤ桼⡼ɤǼ¹ԤΤ˻Ȥä֤Ǥ롣
ƥ CPU ֤ϡΥץΤ
ͥ뤬ƥ⡼ɤǼ¹ԤΤ˻Ȥä֤Ǥ
(㤨Сƥॳ¹ԤΤ˻Ȥä)
.BR time (1)
ޥɤϥץμ¹Ԥ줿 CPU ֤פΤ˻Ѥ롣
ץϡȤ CPU ֤
.BR times (2),
.BR getrusage (2),
.BR clock (3)
ȤäƷפ뤳ȤǤ롣
.SS ϡɥå
¿Υԥ塼 (ӤǶư) ϡɥåäƤ롣
ͥϵư˥եȥå뤿
ϡɥåɤ߹ࡣ
ܤϡ
.BR rtc (4)
.BR hwclock (8)
Ȥ뤳ȡ
.SS "եȥå, HZ, Jiffy"
¿Υƥॳȥॹפ٤ϡ
\fIեȥå\fRʬǽ¤롣
եȥåϥͥˤäƴ졢
֤
.I jiffy
ñ̤Ƿפ롣
jiffy 礭ϥͥ
.I HZ
ͤǷꤵ롣
.I HZ
ͤϥͥΥСȥϡɥץåȥեǰۤʤ롣
i386 ξϰʲ̤Ǥ:
2.4.x ȤΥͥǤϡHZ 100 ǤäΤǡ
jiffy ͤ 0.01 äˤʤäƤ
2.6.0 ʹߤǤϡHZ 1000 䤵줿Τǡjiffy ͤ 0.001 äǤ롣
ͥ 2.6.13 ʹߤǤϡHZ ͤϥͥѥˤʤꡢ
100, 250 (ǥե), 1000 ȤͤˤǤ롣
줾 jiffy ͤ 0.01, 0.004, 0.001 äˤʤ롣
ͥ 2.6.20 ʹߤǤϡ300 ѤǤ褦ˤʤäƤ롣
300 ϰŪʱե졼졼ȤθܿǤ (PAL, 25HZ; NTSC, 30HZ)
.SS ""
Unix ƥϻ \fI\fR ÿɽ롣
1970 ǯ 1 1 ī 0:00:00 UTC 롣
ץ \fI\fR
.BR gettimeofday (2)
ȤäƷפ뤳ȤǤ롣
δؿϵηв֤ (äȥޥä) ֤
.BR time (2)
Ʊͤξ뤬Ǥᤤä٤ʤ
ƥ
.BR settimeofday (2)
ѹǤ롣
.SS "̤λ"
饤֥ؿˤ
.I tm
ι¤ΤȤΤ롣
ι¤Τ\fI̤λ\fRɽ
̡ͤ (ǯʬäʤ) ʬƳǼ롣
ι¤Τ
.BR ctime (3)
˵ҤƤꡢ̤λѴ
ؿˤĤƤҤƤ롣
̤λɽǽʸѴؿˤĤƤϡ
.BR ctime (3),
.BR strftime (3),
.BR strptime (3)
˵ҤƤ롣
.SS "ޤΥפ"
͡ʥƥॳȴؿˤꡢꤵ줿λ֡
ץϥ (¹Ԥ) 뤳ȤǽǤ롣
.BR nanosleep (2)
.BR sleep (3)
Ȥ뤳ȡ
͡ʥƥॳˤꡢץϾΤ
֤ͭλ륿ޤǤ롣
ޤץȤƷֳ֤֤ǤΤ⤢롣
.BR alarm (2),
.BR getitimer (2),
.BR timer_create (3)
Ȥ뤳ȡ
.\" FIXME . timer_create() and friends are not yet in man-pages
.SH Ϣ
.BR date (1),
.BR time (1),
.BR adjtimex (2),
.BR alarm (2),
.BR getitimer (2),
.BR getrlimit (2),
.BR getrusage (2),
.BR gettimeofday (2),
.BR nanosleep (2),
.BR stat (2),
.BR time (2),
.\" FIXME . timer_create (2),
.BR timerfd_create (2),
.BR times (2),
.BR utime (2),
.BR adjtime (3),
.BR clock (3),
.BR sleep (3),
.BR timeradd (3),
.BR ctime (3),
.BR strftime (3),
.BR strptime (3),
.BR usleep (3),
.BR rtc (4),
.BR hwclock (8)
|