[前][次][番号順一覧][スレッド一覧]

ruby-changes:30427

From: akr <ko1@a...>
Date: Sun, 11 Aug 2013 12:43:40 +0900 (JST)
Subject: [ruby-changes:30427] akr:r42506 (trunk): [DOC] update doc.

akr	2013-08-11 12:43:04 +0900 (Sun, 11 Aug 2013)

  New Revision: 42506

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42506

  Log:
    [DOC] update doc.

  Modified files:
    trunk/process.c
Index: process.c
===================================================================
--- process.c	(revision 42505)
+++ process.c	(revision 42506)
@@ -6666,6 +6666,14 @@ rb_proc_times(VALUE obj) https://github.com/ruby/ruby/blob/trunk/process.c#L6666
  *  [CLOCK_UPTIME_PRECISE] FreeBSD 8.1
  *  [CLOCK_SECOND] FreeBSD 8.1
  *
+ *  Also, several symbols are accepted as _clk_id_.
+ *  They may be used as emulation for clock_gettime().
+ *  For example, <code>Process::CLOCK_REALTIME</code> is defined as
+ *  <code>:POSIX_GETTIMEOFDAY_CLOCK_REALTIME</code> when clock_gettime() is not available.
+ *
+ *  [:POSIX_GETTIMEOFDAY_CLOCK_REALTIME] Use gettimeofday().  The precision is 1 micro second.
+ *  [:POSIX_TIME_CLOCK_REALTIME] Use time().  The precision is 1 second.
+ *
  *  If the given _clk_id_ is not supported, Errno::EINVAL is raised.
  *
  *  _unit_ specifies a type of the return value.

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]