We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$.now()
1 parent ff37692 commit 54cd451Copy full SHA for 54cd451
tests/visual/dialog/performance.html
@@ -10,17 +10,17 @@
10
html = new Array( 500 ).join( $.trim( $( "#template" ).html() ) );
11
$( html ).appendTo( "body" );
12
13
- start = $.now();
+ start = new Date();
14
$( "#dialog" ).dialog({
15
modal: true,
16
autoOpen: false
17
});
18
- $( "<li>Create: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
+ $( "<li>Create: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
19
20
$( "#opener" ).on( "click", function() {
21
22
$( "#dialog" ).dialog( "open" );
23
- $( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
+ $( "<li>Open: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
24
25
</script>
26
</head>
0 commit comments