Skip to content

Instantly share code, notes, and snippets.

@piscisaureus
Created May 2, 2014 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save piscisaureus/d23616ec116df0df1419 to your computer and use it in GitHub Desktop.
Save piscisaureus/d23616ec116df0df1419 to your computer and use it in GitHub Desktop.
http.createServer(function(conn) {
zone.data.start = Date.now();
doThis(conn);
doThat(conn);
new Zone(function() {
zone.data.bar = 49;
output = renterTemplate()
});
});
function renderTemplate() {
console.log("So far we took %d ms", Date.now() - zone.data.start);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment