1<!DOCTYPE html>
2<html>
3  <!--
4  Copyright (c) 2013 The Chromium Authors. All rights reserved.
5  Use of this source code is governed by a BSD-style license that can be
6  found in the LICENSE file.
7  -->
8<head>
9  <meta http-equiv="Pragma" content="no-cache">
10  <meta http-equiv="Expires" content="-1">
11  <title>{{title}}</title>
12  <script type="text/javascript" src="common.js"></script>
13  <script type ="text/javascript" src="example.js"></script>
14</head>
15<body {{attrs}}>
16  <h1>{{title}}</h1>
17  <h2>Status: <code id="statusField">NO-STATUS</code></h2>
18  <p>The Core API example demonstrates the basic use of the Time and Callback
19     functions.</p>
20  <p> Push 'Start Test' to run <span id="count">0</span> iterations.  Each
21     iteration will send a message to the NaCl module containing the number of
22     milliseconds to delay. The modules will immediately post a message back
23     if the delay is zero, otherwise, it will issue a CallOnMainThread with
24     the delay specified.</p>
25  <p> Once the test completes, it will calculate the average time spent
26      between the message reception and the callback triggering (NaCl Delay),
27      the average time for a single round trip (Round Trip), and the
28      average iteration including other JS overhead (Total). </p>
29  <div>
30   NaCl Delay
31   <input type="number" id="delay" value="0" min="0" max="20"
32       style="text-align:right"> ms
33   <input type="button" id="start" value="Start Test">
34   <table style="border:1px solid black">
35    <tr>
36      <th>NaCl Delay</th><th>Round Trip</th><th>Total</th>
37    </tr>
38    <tr>
39      <td id="NaCl">Unknown</td>
40      <td id="Round">Unknown</td>
41      <td id="Total">Unknown</td>
42    </tr>
43   </table>
44  </div>
45  <div id="listener"></div>
46</body>
47</html>
48