3b1b / 3b1b/manim

How to Measure the Time Between Animations

未关闭
#1,160 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
93.8k
派生
7.7k
PR 合并指标
PR 指标待抓取

描述

I prepared an animation scene and going to record my voice on it. To this, I need the measure the time that during between animations. I try the time module but it doesn't measure the time between animations but, guess, python's reading time. What should I do? Here is the code and console's print:

```
class KaraTahta(Scene):
def construct(self):
a = Circle()
start_time = time.time()
self.play(ShowCreation(a), run_time=2)
self.wait(3)
elapsed_time = time.time() - start_time
print(elapsed_time)
```
![manimsorunu](https://user-images.githubusercontent.com/58697394/86917736-46e09080-c12e-11ea-9a77-e173c18facba.png)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。