How to Measure the Time Between Animations
- 主要語言
- Python
- 星號
- 93.9k
- 分支
- 7.7k
- 平均合併
- 2 天 13 小時
- 30 天內合併 PR
- 4
描述
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)
```

貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
查看 manim 中的 Scene 類別及其動畫方法。使用者希望測量動畫的即時持續時間,而非 Python 的執行時間。檢查 run_time 的處理方式,以及是否有辦法從動畫回放中取得時間戳。程式碼範例顯示一個簡單的 Circle 動畫;先從理解 play 和 wait 方法開始,看看它們是否暴露時間資訊。
由索引模型根據 Issue 內容生成。
評估
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 55/100