time

Search:
Group by:
Source   Edit  

Procs

proc epochNanoNow(): uint64 {....raises: [CatchableError, ValueError],
                              tags: [ReadEnvEffect, RootEffect], forbids: [].}
Source   Edit  
proc epochSecNow(): int {....raises: [CatchableError, ValueError],
                          tags: [ReadEnvEffect, RootEffect], forbids: [].}
Source   Edit  
proc nanoEpochToStr(time: uint64; precision = 3): string {....raises: [], tags: [],
    forbids: [].}
Source   Edit  

Templates

template time(action: string; code: untyped)
Source   Edit  
template time_as(timevar: untyped; code: untyped)

Assign to timevar the time used on running the code block. timevar would be in nanoseconds.

See also:

Source   Edit