diff options
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 |