웹페이지 화면 표현 시간 정보
웹페이지 화면 표현 시간본문
tail.php 에 아래와 같이 변경하면
화면에 표현 하는데 걸리는 시간을
같이 볼수 있습니다.
( 단, 관리자만 확인 가능하게 했습니다. )
[1] tail.php 페이지 상단 )------
<?php if ($is_admin == 'super') { ?>
<div style='float:left; text-align:center;'>RUN TIME : <?php echo get_microtime()-$begin_time; ?> / SHOW TIME : <label id="ggrshowtime"></label></div>
<?php } ?>
[2] tail.php 페이지 하단 )--------
<?php if ($is_admin == 'super') { ?>
<script type="text/javascript">
var ggr_stime = new Date();
function ggr_showtime(){ $('#ggrshowtime').html( (((new Date())-ggr_stime)/1000)+' sec' ); }
window.onstop = ggr_showtime;
window.onload = ggr_showtime;
</script>
<? } ?>
</body>
</html>
[ 결과 화면 ]-------------------
RUN TIME : 0.0063819885253906 / SHOW TIME : 0.036 sec
화면에 표현 하는데 걸리는 시간을
같이 볼수 있습니다.
( 단, 관리자만 확인 가능하게 했습니다. )
[1] tail.php 페이지 상단 )------
<?php if ($is_admin == 'super') { ?>
<div style='float:left; text-align:center;'>RUN TIME : <?php echo get_microtime()-$begin_time; ?> / SHOW TIME : <label id="ggrshowtime"></label></div>
<?php } ?>
[2] tail.php 페이지 하단 )--------
<?php if ($is_admin == 'super') { ?>
<script type="text/javascript">
var ggr_stime = new Date();
function ggr_showtime(){ $('#ggrshowtime').html( (((new Date())-ggr_stime)/1000)+' sec' ); }
window.onstop = ggr_showtime;
window.onload = ggr_showtime;
</script>
<? } ?>
</body>
</html>
[ 결과 화면 ]-------------------
RUN TIME : 0.0063819885253906 / SHOW TIME : 0.036 sec
추천
3
3
댓글 3개
감사합니다 ^^
고맙습니다 !!!
^^ 좋은 정보이네요.
굿입니다. 잘 활용할게염
굿입니다. 잘 활용할게염