benchmark time from before loading the file
This commit is contained in:
parent
6d143b1160
commit
8243894a18
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user