# `Timer`

digraph inheritance6f0019a2a7 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "Logger" [URL="taurus-Logger.html#taurus.Logger",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="The taurus logger class. All taurus pertinent classes should inherit"]; "Timer" [URL="#taurus.core.util.timer.Timer",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="Timer Object."]; "Logger" -> "Timer" [arrowsize=0.5,style="setlinewidth(0.5)"]; }

class Timer(interval, function, parent, strict_timing=True, *args, **kwargs)

  Timer Object.

  Interval in seconds (The argument may be a floating point number for subsecond precision). If strict_timing is True, the timer will try to compensate for drifting due to the time it takes to execute function in each loop.

  Import from `taurus.core.util.timer` as:

      from taurus.core.util.timer import Timer

  start()

    Start Timer Object

  stop(sync=False)

    Stop Timer Object