+ 1
How to crate a timer on c#?
please explain me please
3 Respostas
+ 2
to create a timer you have to do something like this
make some function timer () which is include the functionality of timer time in seconds minute and hour or in mili seconds too as you want
then other functions starttimer() to start the time of timer
halt timer() to stop the time of timer
record time () to store the time of timer
and add their functionality as you want to use as accordance to your project
to code that make some decisions making and conditionals statement like if-else switch and etc.
+ 1
could you please create a code for that
+ 1
There are mainly two timer classes in C#, one from the System.Threading namespace and the other from the System.Timers namespace. The suggested-to-use one is the latter.
Here's a little implementation of it from a recent code I made.
https://code.sololearn.com/cHm1FFSWwORd/?ref=app