⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.25
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
3.0.0
/
system
/
Process
/
View File Name :
clock_getres-c.ri
U:RDoc::AnyMethod[iI"clock_getres:ETI"Process::clock_getres;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KReturns an estimate of the resolution of a +clock_id+ using the POSIX ;TI"*<code>clock_getres()</code> function.;To:RDoc::Markup::BlankLine o; ; [I"ONote the reported resolution is often inaccurate on most platforms due to ;TI"Munderlying bugs for this function and therefore the reported resolution ;TI"Hoften differs from the actual resolution of the clock in practice. ;TI"UInaccurate reported resolutions have been observed for various clocks including ;TI"QCLOCK_MONOTONIC and CLOCK_MONOTONIC_RAW when using Linux, macOS, BSD or AIX ;TI"Hplatforms, when using ARM processors, or when using virtualization.;T@o; ; [I"++clock_id+ specifies a kind of clock. ;TI">See the document of +Process.clock_gettime+ for details. ;TI"?+clock_id+ can be a symbol as for +Process.clock_gettime+.;T@o; ; [I"GIf the given +clock_id+ is not supported, Errno::EINVAL is raised.;T@o; ; [ I"4+unit+ specifies the type of the return value. ;TI"G+Process.clock_getres+ accepts +unit+ as +Process.clock_gettime+. ;TI"=The default value, +:float_second+, is also the same as ;TI"+Process.clock_gettime+.;T@o; ; [I"=+Process.clock_getres+ also accepts +:hertz+ as +unit+. ;TI"6+:hertz+ means the reciprocal of +:float_second+.;T@o; ; [I"7+:hertz+ can be used to obtain the exact value of ;TI"=the clock ticks per second for the times() function and ;TI"-CLOCKS_PER_SEC for the clock() function.;T@o; ; [I"V<code>Process.clock_getres(:TIMES_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)</code> ;TI"(returns the clock ticks per second.;T@o; ; [I"V<code>Process.clock_getres(:CLOCK_BASED_CLOCK_PROCESS_CPUTIME_ID, :hertz)</code> ;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@;FI"Process;TcRDoc::NormalModule00