summary refs log tree commit diff stats
path: root/lib/pure/nimprof.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-28 02:14:25 +0200
committerAraq <rumpf_a@web.de>2014-08-28 02:14:25 +0200
commit2b6277c9649fb8672984cc8afc2068afd6c331a1 (patch)
tree28b30a427458f022d1b08f5d9da962b2d8f82693 /lib/pure/nimprof.nim
parent00f50f27973ff33217eabe0b5f02cab49a0d8601 (diff)
downloadNim-2b6277c9649fb8672984cc8afc2068afd6c331a1.tar.gz
more modules updated
Diffstat (limited to 'lib/pure/nimprof.nim')
-rw-r--r--lib/pure/nimprof.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pure/nimprof.nim b/lib/pure/nimprof.nim
index 6b8fe1ce5..3598cdd3a 100644
--- a/lib/pure/nimprof.nim
+++ b/lib/pure/nimprof.nim
@@ -132,9 +132,9 @@ else:
   proc hook(st: TStackTrace) {.nimcall.} =
     if interval == 0:
       hookAux(st, 1)
-    elif getticks() - t0 > interval:
+    elif getTicks() - t0 > interval:
       hookAux(st, 1)
-      t0 = getticks()
+      t0 = getTicks()
 
 proc getTotal(x: ptr TProfileEntry): int =
   result = if isNil(x): 0 else: x.total
@@ -150,7 +150,7 @@ proc writeProfile() {.noconv.} =
     system.profilerHook = nil
   const filename = "profile_results.txt"
   echo "writing " & filename & "..."
-  var f: TFile
+  var f: File
   if open(f, filename, fmWrite):
     sort(profileData, cmpEntries)
     writeln(f, "total executions of each stack trace:")