usleep — Delay execution in microseconds

usleep — Delay execution in microseconds

 

설명 ¶

 

void usleep ( int $micro_seconds )

 

주어진 마이크로 초 동안 프로그램 실행을 지연시킵니다.

 

인수 ¶

 

micro_seconds

 

정지 시간 (마이크로 초). 마이크로 초는 백만 분의 1 초입니다.

 

반환값 ¶

 

값을 반환하지 않습니다.

 

예제 ¶

 

Example #1 usleep() example

 

<?php

 

// Current time

echo date('h:i:s') . "\n";

 

// wait for 2 seconds

usleep(2000000);

 

// back!

echo date('h:i:s') . "\n";

 

?>

위 예제의 출력:

 

11:13:28

11:13:30

|

댓글 작성

댓글을 작성하시려면 로그인이 필요합니다.

로그인하기
🐛 버그신고