Check How Much Time Has Passed

I'm making a timing based action battle system, and I know how to do most of it, but I just need to know if there's a way to check how much time has passed with a variable or a script call. (I would just use Galv's timed button attacks, but I'm using events for my battle system. I cannot figure this out for the life of me, even though I feel like it's right in front of me (which it probably is because sometimes I'm an extreme noob -_-) 
You just set a variable to the game time at the start of the battle, and when you want to check it, put the game time into another variable and calculate the difference.  I think that will give you seconds, so if you need to convert to minutes just /60.
Well, ruby has Time.now for the time, now. Check the Ruby document for 1.9.3, it's very nice documentation. 
@Shaz So I'm assuming with that said, multiplying by 60 would split it into frames?


EDIT: This is not working. 

Spoiler
Screenshot (49).pngScreenshot (50).pngScreenshot (51).png

The button inputs aren't working at all, no matter how many times I press. 
You do not set the time and check the time in the same event.


You 'set' the time at the start of the battle.  On another event page, you get the current time into a different variable then take the first variable away from it.  This will tell you how many seconds have elapsed.  If you want to know how many frames, yes, you would multiply by 60.
Thanks, Shaz. I basically have the system figured out now, but how would I reset the time at the end of each turn? 
You just need another page that gets executed once per turn that sets the original variable again.

Original thread: https://forums.rpgmakerweb.com/threads/check-how-much-time-has-passed.64910/