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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1362 | |
| 1350 | |
| 1342 | |
| 1340 | |
| 1335 | |
| 1332 | |
| 1330 | |
| 1322 | |
| 1317 | |
| 1315 | |
| 1312 | |
| 1305 | |
| 1300 | |
| 1298 | |
| 1293 | |
| 1287 | |
| 1286 | |
| 1267 | |
| 1262 | |
| 1259 | |
| 1255 | |
| 1252 | |
| 1245 | |
| 1244 | |
| 1240 | |
| 1238 | |
| 1235 | |
| 1229 | |
| 1224 | |
| 1220 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기