Created
November 26, 2013 08:02
-
-
Save anonymous/7654856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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