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.
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>
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
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>
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">
36 <th>NaCl Delay
</th><th>Round Trip
</th><th>Total
</th>
39 <td id=
"NaCl">Unknown
</td>
40 <td id=
"Round">Unknown
</td>
41 <td id=
"Total">Unknown
</td>
45 <div id=
"listener"></div>