def updateStimText(stim, text=None):
 stime = (core.getTime() * 1000.0)
 if text:
  stim.setText(text)
 stim.draw()
 gl.glFinish()
 etime = (core.getTime() * 1000.0)
 return (etime - stime)

def updateStimText ( stim , text = None ) : stime = ( core . getTime ( ) * 1000.0 ) if text : stim . setText ( text ) stim . draw ( ) gl . glFinish ( ) etime = ( core . getTime ( ) * 1000.0 ) return ( etime - stime )
function used by all text stim types for redrawing the stim .