diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-06-04 00:45:46 +0200 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-06-04 00:45:46 +0200 |
commit | c441cdb64ca5394f74faadf76563bcfafeda18f4 (patch) | |
tree | a044b0464fe8066e362b028df67660b3e6c21c5b /tests/accept/compile | |
parent | 909f7dbf8cac95d4cdb08c4a2e1cb4ba2d42bfeb (diff) | |
download | Nim-c441cdb64ca5394f74faadf76563bcfafeda18f4.tar.gz |
bugfix: exception handling (still not correct)
Diffstat (limited to 'tests/accept/compile')
-rwxr-xr-x | tests/accept/compile/tcputime.nim | 13 | ||||
-rwxr-xr-x[-rw-r--r--] | tests/accept/compile/tdictdestruct.nim | 0 | ||||
-rwxr-xr-x[-rw-r--r--] | tests/accept/compile/tgetstartmilsecs.nim | 0 |
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 |