# In reply to @ghazalialshafi "Sorry I was not": use a template like this at top # of file : import std/[monotimes, times, strformat] template benchmark(title: string, code: untyped) = let start = getMonoTime() code let elapsed = getMonoTime() - start echo &"{title}: {elapsed}" # use like hope you know this already # benchmark "Test":