Skip to content

Commit 54cd451

Browse files
committed
Dialog: Remove use of $.now() in performance test
1 parent ff37692 commit 54cd451

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/visual/dialog/performance.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@
1010
html = new Array( 500 ).join( $.trim( $( "#template" ).html() ) );
1111
$( html ).appendTo( "body" );
1212

13-
start = $.now();
13+
start = new Date();
1414
$( "#dialog" ).dialog({
1515
modal: true,
1616
autoOpen: false
1717
});
18-
$( "<li>Create: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
18+
$( "<li>Create: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
1919

2020
$( "#opener" ).on( "click", function() {
21-
start = $.now();
21+
start = new Date();
2222
$( "#dialog" ).dialog( "open" );
23-
$( "<li>Open: " + ($.now() - start) + "ms</li>" ).appendTo( "#log" );
23+
$( "<li>Open: " + (new Date() - start) + "ms</li>" ).appendTo( "#log" );
2424
});
2525
</script>
2626
</head>

0 commit comments

Comments
 (0)