ffmegaman/puzzle — pull request #20 by ffmegaman (2014-08-24 19:11:09+00:00)
Title: Timer

This is a single JS file with the JS code for timing each puzzle game. You can test to see if this works by doing the following:

1. copy and paste ONLY the code inside the `$(document).ready(){ Copy this code in here }` and place into the JS console in your Chrome browser.
2. Instantiate a new game record by typing into the console `var game = new GameRecord()`.
3. Start timer by typing into the console `timeObject.runTime(game)`.
4. You should see in the console the timer going up by each second.
5. Stop timer by typing into the console `timeObject.stopTime = true;`
6. You can than check if the time has been saved by type `game` into the console.