An open API service indexing awesome lists of open source software.

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

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/``