Try this:

var power = 0;

while (power < 100)
{
//do your stuff;
power += TIME;
....
}