From f6d95a49be83367b3bbd9ccb7eb5ce043da2d774 Mon Sep 17 00:00:00 2001 From: c9s Date: Tue, 10 May 2022 01:07:30 +0800 Subject: [PATCH] print start time and end time --- pkg/cmd/backtest.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/cmd/backtest.go b/pkg/cmd/backtest.go index 65d804937..229fa4e61 100644 --- a/pkg/cmd/backtest.go +++ b/pkg/cmd/backtest.go @@ -418,6 +418,9 @@ var BacktestCmd = &cobra.Command{ trader.Graceful.Shutdown(shutdownCtx) cancelShutdown() + log.Infof("START TIME: %s", startTime.Format(time.RFC1123)) + log.Infof("END TIME: %s", endTime.Format(time.RFC1123)) + // put the logger back to print the pnl log.SetLevel(log.InfoLevel) for _, session := range environ.Sessions() {