<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="mmres://user_interface_reference.css" rel="stylesheet" type="text/css">
<title>CFTIMER</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
   <div id="説明">
   <table cellpadding="0" cellspacing="0" border="0" width="100%" class="main">
      <tr> 
         <td valign="top" class="name">CFTIMER</td>
         <td valign="top" nowrap class="compatibility">&nbsp;</td>
      </tr>
      <tr>
         <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
      </tr>


    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">説明</span>
<p>
CFML コードの指定されたセクションの実行時間を表示します。ColdFusion&#160;MX では、時間コードによって生成されたすべての出力と共にタイミング情報が表示されます。
</p>
<table>
  <tr valign="top">
    <td width="30"><strong>メモ: </strong></td>
    <td>このタグを実行できるようにするには、ColdFusion MX Administrator で [デバッグの設定] の [タイマー情報] を有効にする必要があります。</td>
  </tr>
</table>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">カテゴリ</span>
<p>
デバッグタグ
</p>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="syntax"><span class="title">シンタックス</span><pre>&lt;cftimer
   label = &quot;text&quot;
   type = &quot;inline&quot;、&quot;outline&quot;、&quot;comment&quot;、&quot;debug&quot; &gt;

   SQL ステートメント

&lt;/cftimer&gt;
</pre>    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">関連項目</span>
<p>
cfdump、cftrace、『ColdFusion MX 開発ガイド』の第18章の「アプリケーションのデバッグとトラブルシューティング」 
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">ヒストリ</span>
<p>
ColdFusion&#160;MX&#160;7: このタグが追加されました。
</p>

<p>

</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">使用方法</span>
<p>
このタグを使用して、コードブロックの実行時間を確認することができます。cftimer タグをネストできます。
</p>

<p>
このタグは、アプリケーション開発時の CFML コードのデバッグに役立ちます。本番環境では、ColdFusion MX Administrator でデバッグオプションを無効にしている限り、cftimer タグをコード内にそのまま残すことができます。
</p>
    </td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="CLEARSEPARATION">&nbsp;</td>
  </tr>
  <tr>
    <td valign="top" colspan="2" class="description"><span class="title">例</span><pre>...
&lt;!--- type=&quot;inline&quot;&gt; ---&gt;
     &lt;cftimer label=&quot;時間をクエリーし、インラインでループ処理&quot; type=&quot;inline&quot;&gt;
      &lt;cfquery name=&quot;empquery&quot; datasource=&quot;cfdocexamples&quot;&gt;
            select *
            from Employees
      &lt;/cfquery&gt;

      &lt;cfloop query=&quot;empquery&quot;&gt;
        &lt;cfoutput&gt;#lastname#, #firstname#&lt;/cfoutput&gt;&lt;br&gt;
      &lt;/cfloop&gt;
   &lt;/cftimer&gt;
&lt;hr&gt;&lt;br&gt;

&lt;!--- type=&quot;outline&quot; ---&gt;
     &lt;cftimer label=&quot;時間をクエリーし、アウトラインで CFOUTPUT を実行&quot; type=&quot;outline&quot;&gt;
      &lt;cfquery name=&quot;coursequery&quot; datasource=&quot;cfdocexamples&quot;&gt;
            select *
            from CourseList
      &lt;/cfquery&gt;
   &lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;
      &lt;cfoutput query=&quot;coursequery&quot;&gt;
      &lt;tr&gt;
      &lt;td&gt;#Course_ID#&lt;/td&gt;
      &lt;td&gt;#CorName#&lt;/td&gt;
      &lt;td&gt;#CorLevel#&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/cfoutput&gt;
      &lt;/table&gt;
   &lt;/cftimer&gt;
&lt;hr&gt;&lt;br&gt;

&lt;!--- type=&quot;comment&quot; ---&gt;
     &lt;cftimer label=&quot;時間をクエリーし、コメントに CFOUTPUT を実行&quot; type=&quot;comment&quot;&gt;
      &lt;cfquery name=&quot;parkquery&quot; datasource=&quot;cfdocexamples&quot;&gt;
            select *
            from Parks
      &lt;/cfquery&gt;
        &lt;p&gt;[ビュー]-[Source] を選択して時間情報を確認します。&lt;/p&gt;
       &lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;
      &lt;cfoutput query=&quot;parkquery&quot;&gt;
      &lt;tr&gt;
      &lt;td&gt;#Parkname#&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/cfoutput&gt;
      &lt;/table&gt;
   &lt;/cftimer&gt;
&lt;hr&gt;&lt;br&gt;

&lt;!--- type=&quot;debug&quot; ---&gt;
     &lt;cftimer label=&quot;時間をクエリーし、デバッグ出力に CFOUTPUT を実行&quot; type=&quot;debug&quot;&gt;
      &lt;cfquery name=&quot;deptquery&quot; datasource=&quot;cfdocexamples&quot;&gt;
            select *
            from Departments
      &lt;/cfquery&gt;
        &lt;p&gt;時間情報を表示するには、CFTimer Times ヘッダまでスクロールする&lt;/p&gt;
       &lt;table border=&quot;1&quot; width=&quot;100%&quot;&gt;
      &lt;cfoutput query=&quot;deptquery&quot;&gt;
      &lt;tr&gt;
      &lt;td&gt;#Dept_ID#&lt;/td&gt;
      &lt;td&gt;#Dept_Name#&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/cfoutput&gt;
      &lt;/table&gt;
   &lt;/cftimer&gt;
...
</pre>
         </td>
      </tr>
   </table>
   </div>
<div id="LABEL">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">LABEL</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "&quot; &quot;"


<p>時間情報と共に表示するラベルです。</p>

  </td>
  </tr>
  </table>
</div>
<div id="TYPE">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>  
<td valign="top" class="name">TYPE</td>
  <td valign="top" nowrap class="compatibility">&nbsp;</td>
  </tr>
  <tr>
  <td colspan="2" class="divider"><img src="dwres:18084" width="100%" height="1"></td>
  </tr>

  <tr>
  <td valign="top" class="syntax">&nbsp;</td>
  <td valign="top" nowrap class="requirements">オプション</td>
  </tr>
  <tr>
  <td colspan="2" class="clearseparation">&nbsp;</td>
  </tr>
  <tr>
  <td valign="top" colspan="2" class="description">

<strong>Default value:</strong> "debug"

<ul>

<li>inline: 結果 HTML に続いて、時間情報をインラインで表示します。</li>

<li>outline: 時間情報を表示し、時間コードによって作成された出力の周囲の行も表示します。ブラウザが FIELDSET タグをサポートしてアウトラインを表示できる必要があります。</li>

<li>comment: &lt;!--&#160;label:&#160;elapsed-time&#160;ms&#160;--&gt; という形式で、HTML コメントに時間情報を表示します。デフォルトのラベルは cftimer です。</li>

<li>debug: CFTimer Times ヘッダの下のデバッグ出力に時間情報を表示します。</li>
</ul>


  </td>
  </tr>
  </table>
</div>

  </body>
</html>
