Episodes is a framework for timing web pages. It has three key concepts:
The Episodes white paper describes these concepts in more detail.
You can also refer to the example of Episodes to see working code.
To illustrate how there can be multiple consumers of Episodes, use the Episodes Firefox add-on to view episodic timing information from any page that uses Episodes (all the pages in this directory, for example).