print start time and end time

This commit is contained in:
c9s 2022-05-10 01:07:30 +08:00
parent 5b443f0aeb
commit f6d95a49be
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -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() {