Pause timer

[font=verdana, arial, helvetica][size=2]Hi,

i have a countdown from 20 - 0, works great but i want to pause it. so heres what i did:

countdown.onEnterFrame = function() {
if (!pause) {
this.timer = int(20-(getTimer()-startTime)/1000);
if (Number(this.timer) == 0) {
gotoAndStop(10);
}
}
};

b1.onPress = function() {
pause=true;
};
b2.onPress = function() {
pause=false;
};

however, when i pause, the countdown stops but i think the timer keeps going as when i unpause it jumps down many seconds. Any ideas how to fix it?

cheers,
G [/size][/font]