Public Member Functions | Public Attributes

unlock.state.state.FrameCountTimerState Class Reference

List of all members.

Public Member Functions

def __init__
def begin_timer
def update_timer
def is_complete
def set_duration

Public Attributes

 duration
 elapsed

Detailed Description

A timer based off the variable time deltas coming from the system.
In the event the timer duration is small i.e. < 100ms, jitter in the delta
value can cause problems. Keeping the residual time instead of a full
reset has been shown to have better accuracy in this case.

Member Function Documentation

def unlock.state.state.FrameCountTimerState.__init__ (   self,
  duration_in_frames 
)
def unlock.state.state.FrameCountTimerState.begin_timer (   self  ) 
def unlock.state.state.FrameCountTimerState.is_complete (   self  ) 
def unlock.state.state.FrameCountTimerState.set_duration (   self,
  duration_in_frames 
)
def unlock.state.state.FrameCountTimerState.update_timer (   self,
  delta 
)

Member Data Documentation


The documentation for this class was generated from the following file: