diff options
author | Boss Marco <bossm8@bfh.ch> | 2021-11-10 15:14:55 +0100 |
---|---|---|
committer | Boss Marco <bossm8@bfh.ch> | 2021-11-10 15:14:55 +0100 |
commit | 612275df613e1c0af15d062c387b9d2f14ccc2fc (patch) | |
tree | 298f0a965c05cc2c70e30e80ccc1faab3e122ead /packages/taler-wallet-cli | |
parent | 8dadd89edbb22ccb698b27cfdbd6fd0bb886be72 (diff) |
update time calculation
Diffstat (limited to 'packages/taler-wallet-cli')
-rw-r--r-- | packages/taler-wallet-cli/src/bench1.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/taler-wallet-cli/src/bench1.ts b/packages/taler-wallet-cli/src/bench1.ts index 3050d8a42..0e2f94f9f 100644 --- a/packages/taler-wallet-cli/src/bench1.ts +++ b/packages/taler-wallet-cli/src/bench1.ts @@ -65,7 +65,7 @@ export async function runBench1(configJson: any): Promise<void> { await wallet.client.call(WalletApiOperation.InitWallet, {}); logger.trace(`Starting withdrawal amount=${withdrawAmount}`); - console.time('withdraw'); + let start = Date.now(); await wallet.client.call(WalletApiOperation.WithdrawFakebank, { amount: b1conf.currency + ":" + withdrawAmount, @@ -77,12 +77,12 @@ export async function runBench1(configJson: any): Promise<void> { stopWhenDone: true, }); - logger.info(`Finished withdrawal amount=${withdrawAmount} time=${console.timeEnd('withdraw')}`); + logger.info(`Finished withdrawal amount=${withdrawAmount} time=${Date.now() - start}`); for (let i = 0; i < numDeposits; i++) { logger.trace(`Starting deposit amount=10`); - console.time('deposit') + start = Date.now() await wallet.client.call(WalletApiOperation.CreateDepositGroup, { amount: b1conf.currency + ":10", @@ -93,7 +93,7 @@ export async function runBench1(configJson: any): Promise<void> { stopWhenDone: true, }); - logger.info(`Finished deposit amount=10 time=${console.timeEnd('deposit')}`); + logger.info(`Finished deposit amount=10 time=${Date.now() - start}`); } wallet.stop(); |