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개
게시글 목록
| 번호 | 제목 |
|---|---|
| 1583 | |
| 1580 | |
| 1579 | |
| 1566 | |
| 1555 | |
| 1533 | |
| 1523 | |
| 1489 | |
| 1486 | |
| 1471 | |
| 1467 | |
| 1449 | |
| 1444 | |
| 1443 | |
| 1441 | |
| 1431 | |
| 1426 | |
| 1425 | |
| 1420 | |
| 1418 | |
| 1412 | |
| 1405 | |
| 1401 | |
| 1398 | |
| 1392 | |
| 1383 | |
| 1375 | |
| 1372 | |
| 1371 | |
| 1370 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기