https://github.com/clonkk/timelog
Small package to log timings
https://github.com/clonkk/timelog
logging nim template timer
Last synced: over 1 year ago
JSON representation
Small package to log timings
- Host: GitHub
- URL: https://github.com/clonkk/timelog
- Owner: Clonkk
- Created: 2020-12-09T11:29:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-10-19T09:28:04.000Z (over 4 years ago)
- Last Synced: 2025-03-14T19:59:09.112Z (over 1 year ago)
- Topics: logging, nim, template, timer
- Language: Nim
- Homepage: https://clonkk.github.io/timelog/
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Timelog
A simple nimble package to log execution time
```nim
timelog("my_identifier"):
callMyProc()
```
It is possible to hide the timing behind a define. Doing so will only log if `-d:mydefine` is passed to the Nim compiler
```nim
timelog("my_identifier", mydefine):
callMyProc()
```
## Installation
``nimble install timelog``
## Documentation
### Read
https://clonkk.github.io/timelog/
### Generation
Generate documentation ``nimble doc src/timelog.nim --outdir:docs/``