| Server IP : 162.214.74.102 / Your IP : 216.73.217.21 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/opt/cpanel/ea-ruby24/root/usr/share/ri/system/Process/ |
Upload File : |
U:RDoc::AnyMethod[iI"clock_getres:ETI"Process::clock_getres;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KReturns the time resolution returned by POSIX clock_getres() function.;To:RDoc::Markup::BlankLine o; ; [I"++clock_id+ specifies a kind of clock. ;TI"=See the document of +Process.clock_gettime+ for details.;T@o; ; [ I"<+clock_id+ can be a symbol as +Process.clock_gettime+. ;TI"-However the result may not be accurate. ;TI"MFor example, +Process.clock_getres(:GETTIMEOFDAY_BASED_CLOCK_REALTIME)+ ;TI"Yreturns 1.0e-06 which means 1 microsecond, but actual resolution can be more coarse.;T@o; ; [I"GIf the given +clock_id+ is not supported, Errno::EINVAL is raised.;T@o; ; [ I"2+unit+ specifies a type of the return value. ;TI"G+Process.clock_getres+ accepts +unit+ as +Process.clock_gettime+. ;TI"9The default value, +:float_second+, is also same as ;TI"+Process.clock_gettime+.;T@o; ; [I"=+Process.clock_getres+ also accepts +:hertz+ as +unit+. ;TI"8+:hertz+ means a the reciprocal of +:float_second+.;T@o; ; [I"7+:hertz+ can be used to obtain the exact value of ;TI"9the clock ticks per second for times() function and ;TI")CLOCKS_PER_SEC for clock() function.;T@o; ; [I"K+Process.clock_getres(:TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)+ ;TI"(returns the clock ticks per second.;T@o; ; [I"K+Process.clock_getres(:CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)+ ;TI"returns CLOCKS_PER_SEC.;T@o:RDoc::Markup::Verbatim; [I"6p Process.clock_getres(Process::CLOCK_MONOTONIC) ;TI"#=> 1.0e-09;T:@format0: @fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"9Process.clock_getres(clock_id [, unit]) -> number ;T0[ I"(*args);T@7FI"Process;TcRDoc::NormalModule00