Skip to content

Commit 7c4a494

Browse files
committed
Fix time issue with 32 bit.
1 parent f43dc3c commit 7c4a494

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fidget/opengl/perf.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type
99

1010
PerfEntry* = object
1111
tag: string
12-
ticks: int
12+
ticks: int64
1313
kind: EntryKind
1414

1515
TimeSeries* = ref object
@@ -21,8 +21,8 @@ var
2121
perfEnabled* = true
2222
defaultBuffer: seq[PerfEntry]
2323

24-
proc getTicks*(): int =
25-
getMonoTime().ticks.int
24+
proc getTicks*(): int64 =
25+
getMonoTime().ticks
2626

2727
proc addEntry(tag: string, kind: EntryKind, buffer: var seq[PerfEntry]) =
2828
var entry = PerfEntry()

0 commit comments

Comments
 (0)