From 1fd8da459bf0644fa2520e1fe6a15815a08ca58f Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Tue, 5 May 2020 18:33:33 +0200 Subject: [PATCH] timeEnd returns measured time in ms --- package.json | 2 +- src/base.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index cb0d26b..492972a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hibas123/logging", - "version": "2.4.3", + "version": "2.4.4", "description": "", "main": "out/index.js", "types": "out/index.d.ts", diff --git a/src/base.ts b/src/base.ts index 1e3f4fc..21c1442 100644 --- a/src/base.ts +++ b/src/base.ts @@ -309,7 +309,9 @@ export class LoggingBase { withColor(Colors.BLUE, diff.toFixed(4)), "ms", ]); + return diff; } + return -1; } private message(