Package VisionEgg :: Module Core :: Class FrameTimer
[frames | no frames]

Class FrameTimer


Time inter frame intervals and compute frames per second.

Method Summary
  __init__(self, bin_start_msec, bin_stop_msec, bin_width_msec, running_average_num_frames)
Create instance of FrameTimer.
  get_average_ifi_sec(self)
  get_longest_frame_duration_sec(self)
  get_running_average_ifi_sec(self)
  log_histogram(self)
Send histogram to logger.
  print_histogram(self)
  tick(self)
Declare a frame has just been drawn.

Method Details

__init__(self, bin_start_msec=2, bin_stop_msec=28, bin_width_msec=2, running_average_num_frames=0)
(Constructor)

Create instance of FrameTimer.

log_histogram(self)

Send histogram to logger.

tick(self)

Declare a frame has just been drawn.

Generated by Epydoc 2.0 on Fri Sep 19 18:29:40 2003 http://epydoc.sf.net