Permalink
Browse files

Added loader timing example

  • Loading branch information...
davglass committed Feb 10, 2011
1 parent c0326e1 commit 071785cdbf0fba18bc158706a1680fcc70946d9b
Showing with 15 additions and 0 deletions.
  1. +15 −0 examples/loader.js
View
@@ -0,0 +1,15 @@
+#!/usr/bin/env node
+var start = (new Date()).getTime();
+var YUI = require("yui3").YUI;
+
+
+YUI({
+ combine: false,
+ filter: 'debug',
+ debug: true
+}).use('node', function(Y) {
+
+ var end = (new Date()).getTime();
+ Y.log(end - start + 'ms', 'info', 'timer');
+
+});

0 comments on commit 071785c

Please sign in to comment.