# HG changeset patch # User sam # Date 1723162704 -25200 # Node ID 3f79b3efca95d4915815a2509f2b10be6d90de49 # Parent 53a8766292a7fe29324425a86418e5c54d5bba3f fix: timing not working diff -r 53a8766292a7 -r 3f79b3efca95 semicongine/core.nim --- a/semicongine/core.nim Thu Aug 08 16:00:32 2024 +0700 +++ b/semicongine/core.nim Fri Aug 09 07:18:24 2024 +0700 @@ -1,10 +1,12 @@ import std/macros import std/math +import std/monotimes import std/os import std/paths import std/strutils import std/strformat import std/tables +import std/times import std/typetraits const RESOURCEROOT {.hint[XDeclaredButNotUsed]: off.} = "resources" diff -r 53a8766292a7 -r 3f79b3efca95 semicongine/core/utils.nim --- a/semicongine/core/utils.nim Thu Aug 08 16:00:32 2024 +0700 +++ b/semicongine/core/utils.nim Fri Aug 09 07:18:24 2024 +0700 @@ -42,4 +42,4 @@ template TimeAndLog*(name: string, body: untyped): untyped = let t0 = getMonoTime() body - echo name, ": ", (getMonoTime() - t0).inNanoseconds.float / 1_000_000 + echo name, ": ", (getMonoTime() - t0).inNanoseconds.float / 1_000_000, "ms"