File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 6
6
from __future__ import annotations
7
7
8
8
import sys
9
+ import timeit
9
10
10
11
import click
11
12
import cloup
12
13
13
- from .checks import HEALTH_CHECKS
14
+ from manim . cli . checkhealth .checks import HEALTH_CHECKS
14
15
15
16
__all__ = ["checkhealth" ]
16
17
@@ -62,7 +63,7 @@ def checkhealth():
62
63
import manim as mn
63
64
64
65
class CheckHealthDemo (mn .Scene ):
65
- def construct (self ):
66
+ def _inner_construct (self ):
66
67
banner = mn .ManimBanner ().shift (mn .UP * 0.5 )
67
68
self .play (banner .create ())
68
69
self .wait (0.5 )
@@ -79,5 +80,11 @@ def construct(self):
79
80
mn .FadeOut (text_tex_group , shift = mn .DOWN ),
80
81
)
81
82
83
+ def construct (self ):
84
+ self .execution_time = timeit .timeit (self ._inner_construct , number = 1 )
85
+
82
86
with mn .tempconfig ({"preview" : True , "disable_caching" : True }):
83
- CheckHealthDemo ().render ()
87
+ scene = CheckHealthDemo ()
88
+ scene .render ()
89
+
90
+ click .echo (f"Scene rendered in { scene .execution_time :.2f} seconds." )
You can’t perform that action at this time.
0 commit comments