Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2013 08:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7654856 to your computer and use it in GitHub Desktop.
Save anonymous/7654856 to your computer and use it in GitHub Desktop.
# Determine the starting time of the form item:
starting_time = self.get("my_form")
# Determine the current time:
current_time = self.time()
# The time it took to complete the form base is the
# difference score between the two:
my_rt = current_time - starting_time
# Set the new variable for future use in the
# GUI (notably, the logger item):
exp.set("my_rt", my_rt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment