Skip to content

Commit

Permalink
feat: moved setting start time to the beginning of the program, for b…
Browse files Browse the repository at this point in the history
…etter measurement

FossilOrigin-Name: d24a397e93e18c9ae032bae9ac8e7f991db3130f9e377edf2f55af6890880dc5
  • Loading branch information
thindil committed Mar 23, 2024
1 parent 27907b8 commit 83971cf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main.nim
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ proc main() {.raises: [], tags: [ReadIOEffect, WriteIOEffect, RootEffect],
## The main procedure of the program
# Set the logger, where the program output will be send
body:
let logger: ConsoleLogger = newColoredLogger(
let
startTime: float = cpuTime()
logger: ConsoleLogger = newColoredLogger(
fmtStr = "[$time] $levelname ")
addHandler(handler = logger)
setLogFilter(lvl = lvlInfo)
Expand All @@ -74,7 +76,6 @@ proc main() {.raises: [], tags: [ReadIOEffect, WriteIOEffect, RootEffect],
resultCode: int = QuitSuccess
configSections: int = 0
globalShowSummary: bool = false
let startTime: float = cpuTime()
# Check source code files with the selected rules
block checkingCode:
while configSections > -1:
Expand Down

0 comments on commit 83971cf

Please sign in to comment.