2021-06-28 14:47:06 +00:00
|
|
|
|
|
|
|
import strutils, os
|
|
|
|
|
|
|
|
const cSourcesPath = currentSourcePath.rsplit(DirSep, 1)[0]
|
2022-04-06 12:30:09 +00:00
|
|
|
const cHeader = cSourcesPath / "wtime.h"
|
2021-06-28 14:47:06 +00:00
|
|
|
|
2022-04-06 12:30:09 +00:00
|
|
|
{.passc: "-I" & cSourcesPath .}
|
2021-06-28 14:47:06 +00:00
|
|
|
|
|
|
|
proc wtime_usec*: float64 {.importc: "Wtime_usec", header: cHeader.}
|
|
|
|
proc wtime_msec*: float64 {.importc: "Wtime_msec", header: cHeader.}
|