# Is it possible to have timer in Catalyst?

**URL:** https://discourse.paraview.org/t/is-it-possible-to-have-timer-in-catalyst/5204
**Category:** In Situ Support
**Tags:** catalyst
**Created:** [August 27, 2020, 9:27pm UTC](https://discourse.paraview.org/t/is-it-possible-to-have-timer-in-catalyst/5204 "2020-08-27T21:27:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![R.B](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@R.B](https://discourse.paraview.org/u/R.B)
#### Post date: [August 27, 2020, 9:27pm UTC](https://discourse.paraview.org/t/is-it-possible-to-have-timer-in-catalyst/5204/1 "2020-08-27T21:27:45Z")

</div>

Hello,

I want to measure the time for each operation (in seconds) in my catalyst in situ script. I tried using the python timers but it complains that it does not recognize it.

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [August 28, 2020, 10:25am UTC](https://discourse.paraview.org/t/is-it-possible-to-have-timer-in-catalyst/5204/2 "2020-08-28T10:25:40Z")

</div>

[`vtkTimerLog`](https://vtk.org/doc/nightly/html/classvtkTimerLog.html) can be used for that.

```auto
from paraview.vtk.vtkCommonSystem import vtkTimerLog
l = vtkTimerLog()
l.StartTimer()
...
l.StopTimer()
print ("%f in seconds" % l.GetElapsedTime())

```
