Remove live code & console.log, leave examples as comments.

This commit is contained in:
Eric Lavault
2021-10-11 14:07:10 +02:00
parent 90356f340d
commit e18718b7d5
14 changed files with 64 additions and 59 deletions

View File

@ -63,7 +63,7 @@ class IntervalTimer {
* Saturday, 01 August 2020 8:33 AM
* @description Example usage
*/
const ExampleIntervalTimer = function () {
const ExampleIntervalTimer = function (output = v => console.log(v)) {
/**
* Create am object with default settings.
* @type {IntervalTimer} Used to get timing information.
@ -82,12 +82,12 @@ const ExampleIntervalTimer = function () {
// ... A test ...
// The time taken to run the test.
console.log(timer.getElapsedTime(initOffset))
output(timer.getElapsedTime(initOffset))
/**
* Returns the elapsed time and resets the timer to 0.
*/
console.log(timer.resetTimer())
output(timer.resetTimer())
}
ExampleIntervalTimer()
export { IntervalTimer, ExampleIntervalTimer }