-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathold_school.html
43 lines (39 loc) · 2.12 KB
/
old_school.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<title>StopWatchJS</title>
</head>
<body data-stopwatch="1">
<h1>StopWatchJS</h1>
<script type="text/javascript" src="../src/PHPJS.js"></script>
<script type="text/javascript" src="../src/StopWatchPeriod.js"></script>
<script type="text/javascript" src="../src/StopWatchEvent.js"></script>
<script type="text/javascript" src="../src/StopWatchException.js"></script>
<script type="text/javascript" src="../src/StopWatchSection.js"></script>
<script type="text/javascript" src="../src/StopWatch.js"></script>
<script type="text/javascript" src="../src/StopWatchExporter.js"></script>
<script type="text/javascript" src="../src/StopWatchExporter/SymfonyExporter.js"></script>
<script type="text/javascript" src="../src/StopWatchViewer.js"></script>
<script type="text/javascript" src="../src/StopWatchViewer/SymfonyViewer.js"></script>
<script type="text/javascript">
var section = null;
StopWatch.start('initialisation','section');
StopWatch.start('R.js','loading');
var i = setInterval(function(){ StopWatch.lap('R.js'); },100);
setTimeout(function(){ clearInterval(i); StopWatch.stop('R.js'); StopWatch.stop('initialisation'); },500);
setTimeout(function(){ StopWatch.start('working','section'); },500);
setTimeout(function(){ section = StopWatch.openSection('SubProcess'); },550);
setTimeout(function(){ section.start('render','template'); },600);
setTimeout(function(){ section.stop('render'); },800);
setTimeout(function(){ StopWatch.closeSection('SubProcess'); },900);
setTimeout(function(){ StopWatch.stop('working'); },1000);
setTimeout(function(){
var exporter = new StopWatchSymfonyExporter();
exporter.setStopWatch(StopWatch);
var viewer = new StopWatchSymfonyViewer();
viewer.setStopWatchExporter( exporter );
viewer.open();
},1250);
</script>
</body>
</html>