Time measuring in Unity

Hello,

I am currently doing a VR project in Unity. I want to make experiment with people (first person movement) I have 20 rooms in art gallery and I want to measure the time people spent in each room. My aim is people will be teleported either to Room A or to Room B, depending on time spent inside the last room so I was just wondering how can I do that and if it is possible to buy from asset store since am very begginer at coding. I would be so appreciated if you help me on this. Thank you very much in advance.

You got all of this right here:

You could use Time.realTimeSinceStartup. Take the value when user enters the room, and compare the difference to the current value every frame, that way you’ll know how many realtime seconds have elapsed.