summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-06-04 00:45:46 +0200
committerAndreas Rumpf <andreas@andreas-desktop>2010-06-04 00:45:46 +0200
commitc441cdb64ca5394f74faadf76563bcfafeda18f4 (patch)
treea044b0464fe8066e362b028df67660b3e6c21c5b /tests/accept/compile
parent909f7dbf8cac95d4cdb08c4a2e1cb4ba2d42bfeb (diff)
downloadNim-c441cdb64ca5394f74faadf76563bcfafeda18f4.tar.gz
bugfix: exception handling (still not correct)
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-xtests/accept/compile/tcputime.nim13
-rwxr-xr-x[-rw-r--r--]tests/accept/compile/tdictdestruct.nim0
-rwxr-xr-x[-rw-r--r--]tests/accept/compile/tgetstartmilsecs.nim0
3 files changed, 13 insertions, 0 deletions
diff --git a/tests/accept/compile/tcputime.nim b/tests/accept/compile/tcputime.nim
new file mode 100755
index 000000000..2fc46ee64
--- /dev/null
+++ b/tests/accept/compile/tcputime.nim
@@ -0,0 +1,13 @@
+
+import times, os
+
+var e = epochTime()
+var c = cpuTime()
+
+os.sleep(1500)
+
+e = epochTime() - e
+c = cpuTime() - c
+
+echo "epochTime: ", e, " cpuTime: ", c
+
diff --git a/tests/accept/compile/tdictdestruct.nim b/tests/accept/compile/tdictdestruct.nim
index 20ca4ba94..20ca4ba94 100644..100755
--- a/tests/accept/compile/tdictdestruct.nim
+++ b/tests/accept/compile/tdictdestruct.nim
diff --git a/tests/accept/compile/tgetstartmilsecs.nim b/tests/accept/compile/tgetstartmilsecs.nim
index 340c78af1..340c78af1 100644..100755
--- a/tests/accept/compile/tgetstartmilsecs.nim
+++ b/tests/accept/compile/tgetstartmilsecs.nim