TimeIt Class

<script src="./point_src/timeit"></script>

The TimeIt entity provides time taken tests for running code.

const timeit = new TimeIt('my label')
timeit.start()
// ... insert delay ...
timeit.stop()
timeit.timeTaken()
// TimeIt("my label") complete 100ms

This can be reduced to two statements, by assigning a startNow bool to the constructor:

const timeit = new TimeIt('my label', true)
console.log(timeit.stop().toString())
// TimeIt("my label") complete 2002ms
Meta Data
title TimeIt Class
dependencies ()
unused_keys ()
unknown_keys ()
filepath_exists True
path timeit
filepath timeit.js
clean_files ()

Method List

comment.html|safe
comment.html|safe
  • method_kind

    method_name

    (
    param_name = param.default_value ,
    )
    from class_name
    comment.html|safe
    comment.html|safe