Skip to content

Commit 41b6d17

Browse files
authored
Clock: Deprecated module. (#32798)
1 parent d8e0acb commit 41b6d17

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/core/Clock.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
1+
import { warn } from '../utils.js';
2+
13
/**
24
* Class for keeping track of time.
5+
*
6+
* @deprecated since r183.
37
*/
48
class Clock {
59

610
/**
711
* Constructs a new clock.
812
*
13+
* @deprecated since 183.
914
* @param {boolean} [autoStart=true] - Whether to automatically start the clock when
1015
* `getDelta()` is called for the first time.
1116
*/
@@ -53,6 +58,8 @@ class Clock {
5358
*/
5459
this.running = false;
5560

61+
warn( 'THREE.Clock: This module has been deprecated. Please use THREE.Timer instead.' ); // @deprecated, r183
62+
5663
}
5764

5865
/**

0 commit comments

Comments
 (0)