275件ヒット
[1-100件を表示]
(0.091秒)
クラス
- Array (11)
- IO (11)
- Integer (22)
-
Rake
:: FileCreationTask (11) -
Rake
:: FileTask (11) -
Rake
:: Task (11) - Socket (44)
-
Socket
:: AncillaryData (11) - String (11)
モジュール
- Benchmark (11)
- Etc (11)
- Kernel (11)
- Process (22)
-
Socket
:: Constants (44)
キーワード
- * (22)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 3
. 0 . 0 (4) -
PC
_ TIMESTAMP _ RESOLUTION (11) -
SCM
_ TIMESTAMP (22) -
SCM
_ TIMESTAMPNS (22) -
SO
_ TIMESTAMP (22) -
SO
_ TIMESTAMPNS (22) - benchmark (11)
-
clock
_ gettime (11) - modified? (11)
-
rb
_ time _ timespec _ new (9) -
rb
_ timespec _ now (9) - select (11)
検索結果
先頭5件
-
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (30816.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
...元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1......を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。... -
Integer
# times -> Enumerator (30320.0) -
self 回だけ繰り返します。 self が正の整数でない場合は何もしません。
...れます。
//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}
@see Integer#upto, Integer#downto, Numeric#step... -
Integer
# times {|n| . . . } -> self (30320.0) -
self 回だけ繰り返します。 self が正の整数でない場合は何もしません。
...れます。
//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}
@see Integer#upto, Integer#downto, Numeric#step... -
Process
. # times -> Process :: Tms (30301.0) -
自身のプロセスとその子プロセスが消費したユーザ/システム CPU 時間の積算を Process::Tms オブジェクトで返します。 時間の単位は秒で、浮動小数点数で与えられます。
...ム CPU 時間の積算を
Process::Tms オブジェクトで返します。
時間の単位は秒で、浮動小数点数で与えられます。
@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。
@see Process::Tms... -
Rake
:: FileTask # timestamp -> Time | Rake :: LateTime (18701.0) -
ファイルタスクのタイムスタンプを返します。
...ファイルタスクのタイムスタンプを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: "test.txt"
file "test.txt" do |task|
Rake.application.options.build_all = false
task.timestamp # => #<Rake::LateTime:0x2ba58f0>
end
//}... -
Socket
:: AncillaryData # timestamp -> Time (18517.0) -
タイムスタンプ制御メッセージに含まれる時刻を Time オブジェクト で返します。
...る時刻を Time オブジェクト
で返します。
"タイムスタンプ制御メッセージ" は以下のいずれかです。
* SOL_SOCKET/SCM_TIMESTAMP (micro second) GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOS X
* SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* SOL_......M_BINTIME (2**(-64) second) FreeBSD
require 'socket'
Addrinfo.udp("127.0.0.1", 0).bind {|s1|
Addrinfo.udp("127.0.0.1", 0).bind {|s2|
s1.setsockopt(:SOCKET, :TIMESTAMP, true)
s2.send "a", 0, s1.local_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::Ancilla......: INET SOCKET TIMESTAMP 2009-02-24 17:35:46.775581>
t = ctl.timestamp
p t #=> 2009-02-24 17:35:46 +0900
p t.usec #=> 775581
p t.nsec #=> 775581000
}
}
@see Socket::Constants::SCM_TIMESTAMP,
Socket::Constants::SCM_TIMESTAMPNS,
Socket::Constants::SCM_BINTI... -
Rake
:: Task # timestamp -> Time (18501.0) -
自身のタイムスタンプを返します。
自身のタイムスタンプを返します。
基本的なタスクは現在時刻を返しますが、高度なタスクはタイムスタンプを
計算して返します。 -
Rake
:: FileCreationTask # timestamp -> Rake :: EarlyTime (18500.0) -
どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
...どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。
@see [[FileTask#timestamp]]... -
void rb
_ timespec _ now(struct timespec *ts) (18500.0) -
現在時刻を取得してその結果を引数 ts で指定した timespec 構造体に格納します。
...現在時刻を取得してその結果を引数 ts で指定した timespec 構造体に格納します。
@param ts timespec 構造体のポインタ... -
Socket
:: Constants :: SCM _ TIMESTAMP -> Integer (18300.0) -
Timestamp (timeval).
...Timestamp (timeval).
Socket::AncillaryData の type として利用します。
@see Socket::AncillaryData, Socket::AncillaryData#timestamp
BasicSocket#sendmsg, BasicSocket#recvmsg...