るりまサーチ

最速Rubyリファレンスマニュアル検索!
712件ヒット [1-100件を表示] (0.063秒)
トップページ > クエリ:>[x] > クエリ:times[x]

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. module >
  4. integer >
  5. float >

ライブラリ

モジュール

検索結果

<< 1 2 3 ... > >>

Integer#times -> Enumerator (18220.0)

self 回だけ繰り返します。 self が正の整数でない場合は何もしません。

...ら self - 1 までの数値が渡されます。

//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}

@see Integer#...

Integer#times {|n| ... } -> self (18220.0)

self 回だけ繰り返します。 self が正の整数でない場合は何もしません。

...ら self - 1 までの数値が渡されます。

//emlist[][ruby]{
3.times { puts "Hello, World!" } # Hello, World! と3行続いて表示される。
0.times { puts "Hello, World!" } # 何も表示されない。
5.times {|n| print n } # 01234 と表示される。
//}

@see Integer#...

Process.#times -> Process::Tms (18201.0)

自身のプロセスとその子プロセスが消費したユーザ/システム CPU 時間の積算を Process::Tms オブジェクトで返します。 時間の単位は秒で、浮動小数点数で与えられます。

自身のプロセスとその子プロセスが消費したユーザ/システム CPU 時間の積算を
Process::Tms オブジェクトで返します。
時間の単位は秒で、浮動小数点数で与えられます。

@raise NotImplementedError メソッドが現在のプラットフォームで実装されていない場合に発生します。

@see Process::Tms

Rake::FileTask#timestamp -> Time | Rake::LateTime (6206.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 (6206.0)

タイムスタンプ制御メッセージに含まれる時刻を Time オブジェクト で返します。

...タイムスタンプ制御メッセージ" は以下のいずれかです。
* SOL_SOCKET/SCM_TIMESTAMP (micro second) GNU/Linux, FreeBSD, NetBSD, OpenBSD, Solaris, MacOS X
* SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* SOL_SOCKET/SCM_BINTIME (2**(-64) second) FreeBSD

require 's...
...:TIMESTAMP, true)
s2.send "a", 0, s1.local_address
ctl = s1.recvmsg.last
p ctl
#=> #<Socket::AncillaryData: 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_BINTIME,
Socket::Constants::SO_TIMESTAMP,
Socket::Constants::SO_TIMESTAMPNS,
Socket::Constants::SO_BINTIME...

絞り込み条件を変える

Rake::FileCreationTask#timestamp -> Rake::EarlyTime (6200.0)

どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。

...どんなタイムスタンプよりも前の時刻をあらわすタイムスタンプを返します。


@see [[FileTask#timestamp]]...

Rake::Task#timestamp -> Time (6200.0)

自身のタイムスタンプを返します。

自身のタイムスタンプを返します。

基本的なタスクは現在時刻を返しますが、高度なタスクはタイムスタンプを
計算して返します。

Socket::Constants::SCM_TIMESTAMP -> Integer (6200.0)

Timestamp (timeval).

...Timestamp (timeval).

Socket::AncillaryData の type として利用します。

@see Socket::AncillaryData, Socket::AncillaryData#timestamp
BasicSocket#sendmsg, BasicSocket#recvmsg...

Socket::Constants::SCM_TIMESTAMPNS -> Integer (6200.0)

Timestamp (timespec).

...Timestamp (timespec).

Socket::AncillaryData の type として利用します。

@see Socket::AncillaryData, Socket::AncillaryData#timestamp
BasicSocket#sendmsg, BasicSocket#recvmsg...

Socket::Constants::SO_TIMESTAMP -> Integer (6200.0)

Receive timestamp with datagrams (timeval)。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Receive timestamp with datagrams (timeval)。
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET
Socket::AncillaryData#timestamp...

絞り込み条件を変える

<< 1 2 3 ... > >>