Skip to content

Commit 762c1fb

Browse files
authored
time_data preload->async/await
1 parent 99ac55d commit 762c1fb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/utilities/time_date.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ function timeDate(p5, fn){
117117
*
118118
* If a sketch has a
119119
* <a href="#/p5/setup">setup()</a> function, then `millis()` begins tracking
120-
* time before the code in <a href="#/p5/setup">setup()</a> runs. If a
121-
* sketch includes a <a href="#/p5/preload">preload()</a> function, then
122-
* `millis()` begins tracking time as soon as the code in
123-
* <a href="#/p5/preload">preload()</a> starts running.
124-
*
120+
* time before the code in <a href="#/p5/setup">setup()</a> runs. If a
121+
* sketch includes asynchronous loading using `async`/`await`, then
122+
* `millis()` begins tracking time as soon as the asynchronous code
123+
* starts running.
125124
* @method millis
126125
* @return {Number} number of milliseconds since starting the sketch.
127126
*

0 commit comments

Comments
 (0)