diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-11 03:43:04 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-11 03:43:04 +0000 |
commit | cef46a5e722dcbbc46a2755b26d38c090ea0d868 (patch) | |
tree | 2a12cfd1303a8b0df3eed485fe9f8e1f6fed9028 /process.c | |
parent | f4670f739e85cad69706388d572e628f8572c378 (diff) | |
download | ruby-cef46a5e722dcbbc46a2755b26d38c090ea0d868.tar.gz |
[DOC] update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -6666,6 +6666,14 @@ rb_proc_times(VALUE obj) * [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. |