|
94 | 94 |
|
95 | 95 | <section class="readme-section"> |
96 | 96 | <article><h1>chronoman</h1><p>Utility class to simplify use of timers created by <code>setTimeout</code>.</p> |
| 97 | +<h3>Features</h3><ul> |
| 98 | +<li>Support for one-time (like <code>setTimeout</code>) or recurrent (like <code>setInterval</code>) timers.</li> |
| 99 | +<li>It is possible to repeat action indefinitely (<code>recurrent</code> property), |
| 100 | +specified number of times (<code>repeatQty</code> property) or depending on |
| 101 | +result of control function (<code>repeatTest</code> property).</li> |
| 102 | +<li>Time period (timeout) can be: a fixed value, a random value, an item selected from a list |
| 103 | +depending on action's execution number, or a value returned from specified function.</li> |
| 104 | +<li>Action that is called can be a function or an object having <code>execute</code> method.</li> |
| 105 | +<li>Action result is saved in timer's field for further access.</li> |
| 106 | +<li>Timer's start time, stop time and action execution times are saved in |
| 107 | +<code>startTime</code>, <code>stopTime</code> and <code>executeTime</code> properties correspondingly.</li> |
| 108 | +</ul> |
97 | 109 | <pre class="prettyprint source lang-js"><code>var timer = new Timer({ |
98 | 110 | period: [100, 200, 300, 400, 500, {start: 100, end: 500}], |
99 | 111 | repeatQty: 100, |
@@ -208,7 +220,7 @@ <h4 class="modal-title">Search results</h4> |
208 | 220 | <span class="jsdoc-message"> |
209 | 221 | Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.6.3</a> |
210 | 222 |
|
211 | | - on 2020-01-01T21:31:19+03:00 |
| 223 | + on 2020-01-01T23:50:20+03:00 |
212 | 224 |
|
213 | 225 | using the <a href="https://github.com/docstrap/docstrap">DocStrap template</a>. |
214 | 226 | </span> |
|
0 commit comments