benchmark time from before loading the file

This commit is contained in:
Konstantin Käfer 2011-02-04 12:25:27 -05:00
parent 6d143b1160
commit 8243894a18

View File

@ -64,16 +64,16 @@ if (!input) {
process.exit(1);
}
if (options.benchmark) {
var start = +new Date;
}
fs.readFile(input, 'utf-8', function (e, data) {
if (e) {
sys.puts("messc: " + e.message);
process.exit(1);
}
if (options.benchmark) {
var start = +new Date;
}
new mess.Renderer({
filename: input,
debug: options.debug,