usleep — Delay execution in microseconds > 개발자팁

매출이 오르면 내리는 수수료! 지금 수수료센터에서 전자결제(PG)수수료 비교견적 신청해 보세요!

개발자팁

개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.

usleep — Delay execution in microseconds 정보

PHP 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

추천
0
  • 복사

댓글 0개

© SIRSOFT
현재 페이지 제일 처음으로