stopwatch.nim 496 Bytes
Newer Older
Benjamin Summerton's avatar
Benjamin Summerton committed
1 2 3 4 5 6 7
# File:         stopwatch.nim
# Authors:      Benjamin N. Summerton <define-private-public>
#               rbmz
# License:      MIT; See the file `LICENSE` for details.
# Description:  A handly Stopwatch for timing code execution and other things.


8
include system/timers
9

Benjamin Summerton's avatar
Benjamin Summerton committed
10
# Because of issues with 64 integers in browser JS, we need to do this
11 12
when defined(js) and not defined(nodejs):
  # For browser JS
Benjamin Summerton's avatar
Benjamin Summerton committed
13
  include stopwatch/js_target
Benjamin Summerton's avatar
Benjamin Summerton committed
14

15
else:
Benjamin Summerton's avatar
Benjamin Summerton committed
16 17
  # For Everthing else
  include stopwatch/regular
18

Benjamin Summerton's avatar
Benjamin Summerton committed
19