C# Programming
04-09-2009, 05:01 PM
I'm developing a countdown timee that will support Pause function and I'm wondering that how can I get the passed milliseconds from Timer. I'm not sure that it is possible but perhaps it might possible through API.
I do not want timer calls tick event after each millisecond, what I want is once I set Interval(eg. 5000) then if I call Pause just after 3000 passed then when resume it should start with 3000. It would be easily possible if I can get the Timer passed millisecond...
any idea guys or any other way ?
edited
this helped me
Environment.TickCount
thanks all of you guys http://www.barakasoft.com/script/Forums/Images/smiley_wink.gif
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8?mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y
-----------------------------------------------
128 bit encrypted signature, crack if you can
modified on Thursday, April 9, 2009 8:54 AM
I do not want timer calls tick event after each millisecond, what I want is once I set Interval(eg. 5000) then if I call Pause just after 3000 passed then when resume it should start with 3000. It would be easily possible if I can get the Timer passed millisecond...
any idea guys or any other way ?
edited
this helped me
Environment.TickCount
thanks all of you guys http://www.barakasoft.com/script/Forums/Images/smiley_wink.gif
TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L
%^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2
W_AD`EPABIKRDFVS)EVLQK)JKQUFK[M`UKs*$GwU#QDXBER@CBN%
R0~53%eYrd8?mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y
-----------------------------------------------
128 bit encrypted signature, crack if you can
modified on Thursday, April 9, 2009 8:54 AM