Results of 1 - 10 of about 107 for seconds (0.002 sec.)
- EvTimer::__construct — Constructs an EvTimer watcher object | PHP 8.3 14348
- EvTimer::__construct (PECL ev >= 0.2.0) EvTimer::__construct — Constructs an EvTimer watcher object 説明 public function EvTimer::__construct ( float $after , float $repeat , callable $callback , mixed $data = null , int $priority = 0 ) Con
... structs an EvTimer watcher object. パラメータ after Configures the timer to trigger after after seconds. repeat If repeat is 0.0 , then it will automatically be stopped once the timeout is reached. If it is positive, then the ... timer will automatically be configured to trigger again every repeat seconds later, until stopped manually. callback See Watcher callbacks . data Custom data associated with the watcher. priority Wat ... cher priority 例 例1 Simple timers <?php // Create and start timer firing after 2 seconds $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // Create and launch timer firing after 2 secon ...
-
https://man.mtool.work/php/8.3/evtimer.construct.html
- ssh2_keepalive_send — Send a keepalive message | PHP 8.3 9961
- ssh2_keepalive_send (PECL ssh2 >= 1.5.0) ssh2_keepalive_send — Send a keepalive message 説明 function ssh2_keepalive_send ( resource $session ): int | false Sends a keepalive message on the given session , according to the configuration set
... パラメータ session An SSH connection link identifier, obtained from a call to ssh2_connect() . 戻り値 Returns the number of seconds that may pass before another keepalive message must be sent, or false on failure. 0 is returned when keepalive messages ar ... , 22 ); ssh2_auth_password ( $connection , 'username' , 'password' ); ssh2_keepalive_config ( $connection , true , 30 ); $seconds = ssh2_keepalive_send ( $connection ); if ( $seconds === false ) { echo "The keepalive message could not be sent" , PHP_EO ... L ; } elseif ( $seconds === 0 ) { echo "Keepalive messages are disabled" , PHP_EOL ; } else { echo "Next keepalive message due in $seconds seconds ...
-
https://man.mtool.work/php/8.3/function.ssh2-keepalive-send.html
- time_nanosleep — 秒およびナノ秒単位で実行を遅延する | PHP 8.3 9603
- time_nanosleep (PHP 5, PHP 7, PHP 8) time_nanosleep — 秒およびナノ秒単位で実行を遅延する 説明 function time_nanosleep ( int $seconds , int $nanoseconds ): array | bool 指定した seconds および nanoseconds の時間だけプログラムの実行を遅延させ
... ます。 パラメータ seconds 非負の整数である必要があります。 nanoseconds 十億よりも小さい非負の整数である必要があります。 注意 : Windows では、与えられ ... rue を、失敗した場合に false を返します。 シグナルによって遅延処理が中断された場合、以下の要素からなる連想配列を返します。 seconds - 残りの秒数 nanoseconds - 残りのナノ秒数 例 例1 time_nanosleep() の例 <?php // 注意! もし配列が返された場合、これはうまく ... ロ秒だけ遅延しました。\n" ; } elseif ( $nano === false ) { echo "遅延に失敗しました。\n" ; } elseif ( is_array ( $nano )) { $seconds = $nano [ 'seconds' ]; $nanoseconds = $nano [ 'nanoseconds' ]; echo "シグナルによって中断しました。\n" ; echo "残りの秒数は ...
-
https://man.mtool.work/php/8.3/function.time-nanosleep.html
- 例 | PHP 8.3 8580
- 例 例1 タイマーのサンプル <?php // タイマーを作り、2 秒後に起動します $w1 = new EvTimer ( 2 , 0 , function () { echo "2 seconds elapsed\n" ; }); // タイマーを作って 2 秒後に起動させ、その後は // 手で止めるまで 1 秒おきに繰り返します $w2 = n
... ew EvTimer ( 2 , 1 , function ( $w ) { echo "is called every second, is launched after 2 seconds\n" ; echo "iteration = " , Ev :: iteration (), PHP_EOL ; // 5 回繰り返したあとでウォッチャーを止めます Ev :: iteration () ... {}); echo "Running a blocking loop\n" ; Ev :: run (); echo "END\n" ; ?> 上の例の出力は、 たとえば以下のようになります。 2 seconds elapsed is called every second, is launched after 2 seconds iteration = 1 is called every second, is launched after 2 seco ... nds iteration = 2 is called every second, is launched after 2 seconds iteration = 3 is called every second, is launched after 2 seconds iteration = 4 is called every second, is launched after ...
-
https://man.mtool.work/php/8.3/ev.examples.html
- UI\Executor::__construct — Construct a new Executor | PHP 8.3 8440
- UI\Executor::__construct (UI 2.0.0) UI\Executor::__construct — Construct a new Executor 説明 public function UI\Executor::__construct () public function UI\Executor::__construct ( int $microseconds ) public function UI\Executor::__construct
... ( int $seconds , int $microseconds ) Shall construct an executor with the given interval, will not start executing until main loop is ent ... ered パラメータ seconds Seconds between executions microseconds Microseconds between executions 他のマニュアルの関連ページ DuckDB Interval Functio ...
-
https://man.mtool.work/php/8.3/ui-executor.construct.html
- ssh2_set_timeout — Set the timeout for blocking operations on a session | PHP 8... 8363
- ssh2_set_timeout (PECL ssh2 >= 1.5.0) ssh2_set_timeout — Set the timeout for blocking operations on a session 説明 function ssh2_set_timeout ( resource $session , int $seconds , int $microseconds = 0 ): void Sets how long a blocking operati
... ions may wait indefinitely. パラメータ session An SSH connection link identifier, obtained from a call to ssh2_connect() . seconds The timeout, in seconds. microseconds An additional number of microseconds added to the timeout. The underlying library on ... ations may wait <?php $connection = ssh2_connect ( 'shell.example.com' , 22 ); // Give up on blocking operations after 5.5 seconds ssh2_set_timeout ( $connection , 5 , 500000 ); ssh2_auth_password ( $connection , 'username' , 'password' ); ?> 参考 ssh2_ ...
-
https://man.mtool.work/php/8.3/function.ssh2-set-timeout.html
- Stomp::setReadTimeout — Sets read timeout | PHP 8.3 8363
- Stomp::setReadTimeout stomp_set_read_timeout (PECL stomp >= 0.3.0) Stomp::setReadTimeout -- stomp_set_read_timeout — Sets read timeout 説明 オブジェクト指向型 (method): public function Stomp::setReadTimeout ( int $seconds , int $microseconds
... s = ? ): void 手続き型: function stomp_set_read_timeout ( resource $link , int $seconds , int $microseconds = ? ): void Sets read timeout. パラメータ link 手続き型のみ: stomp_connect() が返す stomp リンク ID。 ... seconds The seconds part of the timeout to be set. microseconds The microseconds part of the timeout to be set. 戻り値 値を返しません。 例 例1 ...
-
https://man.mtool.work/php/8.3/stomp.setreadtimeout.html
- The MongoDB\Driver\ReadPreference class | PHP 8.3 8286
- The MongoDB\Driver\ReadPreference class (mongodb >=1.0.0) はじめに クラス概要 final class MongoDB\Driver\ReadPreference implements MongoDB\BSON\Serializable , Serializable { /* プロパティ */ public readonly string $ mode ; public readonly ?
... array $ tags ; public readonly int $ maxStalenessSeconds ; public readonly ? object $ hedge ; /* 定数 */ const string PRIMARY = primary ; const string PRIMARY_PREFERRED = primaryP ... = secondaryPreferred ; const string NEAREST = nearest ; const int NO_MAX_STALENESS = -1 ; const int SMALLEST_MAX_STALENESS_SECONDS = 90 ; /* メソッド */ final public function bsonSerialize (): stdClass final public function __construct ( string $mode , ... agSets = null , ? array $options = null ) final public function getHedge (): ? object final public function getMaxStalenessSeconds (): int final public function getMode (): int final public function getModeString (): string final public function getTagS ...
-
https://man.mtool.work/php/8.3/class.mongodb-driver-readpreference.html
- pcntl_sigtimedwait — タイムアウトつきでシグナルを待つ | PHP 8.3 8286
- pcntl_sigtimedwait (PHP 5 >= 5.3.0, PHP 7, PHP 8) pcntl_sigtimedwait — タイムアウトつきでシグナルを待つ 説明 function pcntl_sigtimedwait ( array $signals , array &$info = [] , int $seconds = 0 , int $nanoseconds = 0 ): int | false pcntl_sig
... timedwait() 関数の挙動は pcntl_sigwaitinfo() とほぼ同じですが、さらに 2 つのパラメータがあります。 seconds および nanoseconds がそれで、 スクリプトが待ち続ける時間の上限をここで設定することができます。 パラメータ signals 待つシグ ... ナルの配列。 info シグナルについての情報を含む配列が info に設定されます。 pcntl_sigwaitinfo() を参照ください。 seconds タイムアウトの秒数。 nanoseconds タイムアウトのナノ秒数。 戻り値 成功した場合に pcntl_sigtimedwait() はシグナル番号を返しま ... eError をスローするようになりました。 8.4.0 signals の値が無効である場合、 ValueError をスローするようになりました。 8.4.0 seconds が 0 未満である場合、 ValueError をスローするようになりました。 8.4.0 nanoseconds が 0 と 1e9 の間にない場合、 ValueError ...
-
https://man.mtool.work/php/8.3/function.pcntl-sigtimedwait.html
- sleep — 実行を遅延させる | PHP 8.3 8286
- sleep (PHP 4, PHP 5, PHP 7, PHP 8) sleep — 実行を遅延させる 説明 function sleep ( int $seconds ): int seconds で与えられた秒数分プログラムの実行を遅延させます。 注意 : 1秒以下の精度でプログラムの実行を遅延させる用途には、 usleep() を使って下
... ら、 sleep() は整数値を期待するためです。 たとえば sleep(0.25) は、プログラムの実行を 0 秒停止させてしまいます。 パラメータ seconds 秒単位の停止時間。 ( 0 以上の値でなければなりません) 戻り値 成功した場合にゼロを返します。 シグナルで中断した場合、 sleep( ... API の定数 WAIT_IO_COMPLETION の値) です。 その他のプラットフォームでは、残りの遅延秒数を返します。 エラー / 例外 指定した seconds が負の場合、 この関数は ValueError をスローします。 変更履歴 バージョン 説明 8.0.0 この関数は、負の seconds を指定すると V ...
-
https://man.mtool.work/php/8.3/function.sleep.html