From aac3d70895f6c9493236292d65ff7fdf7acfd502 Mon Sep 17 00:00:00 2001 From: nswbmw Date: Sun, 8 Nov 2015 01:09:58 +0800 Subject: [PATCH] update readme --- Readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Readme.md b/Readme.md index d00aedf..ca78a8a 100644 --- a/Readme.md +++ b/Readme.md @@ -52,7 +52,7 @@ app.use((ctx, next) => { const start = new Date; return next().then(() => { const ms = new Date - start; - console.log(`${ctx.method} ${ctx.url} - ${ms}`); + console.log(`${ctx.method} ${ctx.url} - ${ms}ms`); }); }); @@ -77,7 +77,7 @@ app.use(async (ctx, next) => { const start = new Date; await next(); const ms = new Date - start; - console.log(`${ctx.method} ${ctx.url} - ${ms}`); + console.log(`${ctx.method} ${ctx.url} - ${ms}ms`); }); // response @@ -104,7 +104,7 @@ app.use(co.wrap(function *(ctx, next){ const start = new Date; yield next(); const ms = new Date - start; - console.log(`${ctx.method} ${ctx.url} - ${ms}`); + console.log(`${ctx.method} ${ctx.url} - ${ms}ms`); })); // response @@ -131,7 +131,7 @@ app.use(convert(function *(next){ const start = new Date; yield next; const ms = new Date - start; - console.log(`${this.method} ${this.url} - ${ms}`); + console.log(`${this.method} ${this.url} - ${ms}ms`); })); // response