/** * Clock component. * * @author Alain Pitiot * @version 3.0.8 * @copyright (c) 2019 Ilixa Ltd. ({@link http://ilixa.com}) * @license Distributed under the terms of the MIT License */ import * as util from '../util/Util'; /** *

MonotonicClock offers a convenient way to keep track of time during experiments. An experiment can have as many independent clocks as needed, e.g. one to time responses, another one to keep track of stimuli, etc.

* * @name module:util.MonotonicClock * @class * @param {number} [startTime=