Restting Time Var: How To

Hi there,
I want to basically be able to reset some var that represents time to 0 at call. However, for some reason this does not work because while I thought timeMain would simply equal Time.time, it does not, in any way. For instance when Time.time = 3.033, timeMain = 1200.234.

Why is that?

function Update () 
{
	timeMain = timeMain + Time.time;
	if(timeMain == timeGroup)
	initiateGroup();
}

lets think about that. Lets say the game is running 1sec on the first frame

timeMain(LastFrame) + Time.time = timeMain(now) // just swithed it around to make it more like “normal” Math
0 + 1 = 1 so timeMain is now 1 lets stepp to the next frame with anouther sec added
1 + 2 = 3 timeMain is now 3 becaus you add the totall time with the previous timeMain! next frame would be
3 + 3 = 6

see what is going wrong?

use instead
timeMain = timeMain + Time.deltaTime

Right. I was adding time upon time upon time. My bad.

Cheers.
Really had me going.
:s