aboutsummaryrefslogtreecommitdiff
path: root/documentation/manual-pages/ja/man9/microtime.9
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/manual-pages/ja/man9/microtime.9')
-rw-r--r--documentation/manual-pages/ja/man9/microtime.9114
1 files changed, 114 insertions, 0 deletions
diff --git a/documentation/manual-pages/ja/man9/microtime.9 b/documentation/manual-pages/ja/man9/microtime.9
new file mode 100644
index 0000000000..1d1b7af643
--- /dev/null
+++ b/documentation/manual-pages/ja/man9/microtime.9
@@ -0,0 +1,114 @@
+.\" Copyright (c) 2000 Kelly Yancey
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\" notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\" notice, this list of conditions and the following disclaimer in the
+.\" documentation and/or other materials provided with the distribution.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\" %FreeBSD: src/share/man/man9/microtime.9,v 1.7.8.1 2004/09/22 04:43:33 brooks Exp %
+.\"
+.\" $FreeBSD$
+.Dd September 16, 2004
+.Dt MICROTIME 9
+.Os
+.Sh 名称
+.Nm bintime ,
+.Nm getbintime ,
+.Nm microtime ,
+.Nm getmicrotime ,
+.Nm nanotime ,
+.Nm getnanotime
+.Nd 現在時刻の取得
+.Sh 書式
+.In sys/time.h
+.Ft void
+.Fn bintime "struct bintime *bt"
+.Ft void
+.Fn getbintime "struct bintime *bt"
+.Ft void
+.Fn microtime "struct timeval *tv"
+.Ft void
+.Fn getmicrotime "struct timeval *tv"
+.Ft void
+.Fn nanotime "struct timespec *ts"
+.Ft void
+.Fn getnanotime "struct timespec *tsp"
+.Sh 解説
+.Fn bintime
+および
+.Fn getbintime
+関数は、
+.Fa bt
+によって指定されたアドレスに、
+.Ft bintime
+構造体としてシステム時刻を保存します。
+.Fn microtime
+および
+.Fn getmicrotime
+関数も同等の機能を果たしますが、代わりに
+.Ft timeval
+構造体として時刻を保存します。
+同様に、
+.Fn nanotime
+および
+.Fn getnanotime
+関数は、
+.Ft timespec
+構造体として時刻を保存します。
+.Pp
+.Fn bintime ,
+.Fn microtime ,
+.Fn nanotime
+は、可能な限り正確な現在時刻を返す時刻カウンタを、常に請求します。
+それに反して、
+.Fn getbintime ,
+.Fn getmicrotime ,
+.Fn getnanotime
+関数は、正確ではないが高速に得られる時刻を返す抽象化です。
+.Pp
+.Fn getbintime ,
+.Fn getmicrotime ,
+.Fn getnanotime
+関数の意図は、タイマの正確さ対実行時間のユーザの好みを強化することです。
+.Sh 関連項目
+.Xr binuptime 9 ,
+.Xr getbinuptime 9 ,
+.Xr getmicrouptime 9 ,
+.Xr getnanouptime 9 ,
+.Xr microuptime 9 ,
+.Xr nanouptime 9 ,
+.Xr tvtohz 9
+.Sh 歴史
+.Nm bintime
+関数は、
+.Fx 5.0
+で初めて登場しました。
+.Nm
+および
+.Nm nanotime
+関数は
+.Fx 3.0
+で初めて登場しましたが、別の形で
+.Bx 4.4
+から存在していました。
+.Sh 作者
+このマニュアルページは
+.An Kelly Yancey Aq kbyanc@posi.net
+が書きました。