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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1084 | |
| 1083 | |
| 1080 | |
| 1074 | |
| 1068 | |
| 1064 | |
| 1056 | |
| 1048 | |
| 1037 | |
| 1029 | |
| 1025 | |
| 1022 | |
| 1019 | |
| 1014 | |
| 1013 | |
| 1012 | |
| 1003 | |
| 1002 | |
| 997 | |
| 992 | |
| 986 | |
| 982 | |
| 973 | |
| 962 | |
| 952 | |
| 950 | |
| 947 | |
| 945 | |
| 942 | |
| 938 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기