Skip to content

Instantly share code, notes, and snippets.

@donovanhide
Created February 18, 2010 19:53
Show Gist options
  • Save donovanhide/307983 to your computer and use it in GitHub Desktop.
Save donovanhide/307983 to your computer and use it in GitHub Desktop.
var sys = require('sys'),
require("./date/globalization/en-GB");
require("./date/core");
require("./date/parser");
require("./date/sugarpak");
require("./date/time");
require("./date/extras");
var start = new Date();
...
Do stuff
...
var duration = new TimePeriod(start,new Date());
//This throws "ReferenceError: TimePeriod is not defined"
sys.puts('Tests took: '+ duration);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment