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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1216 | |
| 1202 | |
| 1197 | |
| 1191 | |
| 1189 | |
| 1187 | |
| 1178 | |
| 1175 | |
| 1168 | |
| 1164 | |
| 1160 | |
| 1157 | |
| 1155 | |
| 1152 | |
| 1147 | |
| 1144 | |
| 1143 | |
| 1140 | |
| 1134 | |
| 1130 | |
| 1128 | |
| 1124 | |
| 1123 | |
| 1115 | |
| 1111 | |
| 1108 | |
| 1097 | |
| 1091 | |
| 1088 | |
| 1086 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기