Public Member Functions | Public Attributes

unlock.state.state.TimerState 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
 reset
 elapsed
 last_time

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.TimerState.__init__ (   self,
  duration 
)
def unlock.state.state.TimerState.begin_timer (   self  ) 
def unlock.state.state.TimerState.is_complete (   self  ) 
def unlock.state.state.TimerState.set_duration (   self,
  duration 
)
def unlock.state.state.TimerState.update_timer (   self,
  delta 
)

Member Data Documentation


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