The following script shows how a counter and a timer are operated together:
#!/usr/bin/env python
from PyTango import *
import time
try :
counter = DeviceProxy( "someHost:10000/p15/counter/exp.01")
timer = DeviceProxy( "someHost:10000/p15/timer/exp.01")
except :
print( "Failed with exception !")
print( sys.exc_info()[0])
exit
timer.SampleTime = 1.0
counter.Reset()
timer.Start()
while timer.state() == DevState.MOVING:
time.sleep(0.1)
print( "remaining %g" % timer.RemainingTime)
print( " counts %d " % counter.Counts)