How to Use Timers in C#

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • We all exist in time and computers do too. Being able to harness the power of time is crucial to making next level programs. Watch this video to learn how you can fully utilize time in all of your C# programs. Thank you for watching!
    Link to my Discord Channel for C# questions, comments, suggestions and discussions: / discord
    Link to the Github repository for the code shown in this video: github.com/vmi...

КОМЕНТАРІ • 34

  • @sahmedyanis
    @sahmedyanis 2 роки тому +2

    very simple, straight to the point and well illustrated.
    this video is very helpful thank you so much

  • @tugs8689
    @tugs8689 2 роки тому +2

    thank you man I've been looking for exactly this for a while and this is where I found a perfect solution

  • @pooyayousefi582
    @pooyayousefi582 Рік тому +1

    Well explained, i just started with C#, i will hop on your discord!

  • @1negroup841
    @1negroup841 2 роки тому +3

    For anyone watching this for the purposes of using this in unity and the Timer wont stop use Timer.EndInit(); in whatever function

  • @markoviitanen2671
    @markoviitanen2671 Рік тому +1

    Very well done. Keeping it simple enough. :)

  • @zcodings
    @zcodings 3 роки тому +1

    Hey man great video. just joined on your discord

  • @maddiebahle
    @maddiebahle 3 роки тому +1

    Thanks so much for the information!

    • @veremiller2171
      @veremiller2171  3 роки тому +1

      You're Welcome! Thank you for watching!!

  • @leoleo20100216
    @leoleo20100216 2 роки тому +1

    Very useful,clear. Thanks.

  • @ideletefile397
    @ideletefile397 3 роки тому

    Thank you! Simple yet informative.

  • @DanielArloff
    @DanielArloff Рік тому +1

    Very useful thanks!

  • @angus1111
    @angus1111 2 роки тому

    this is so useful , thank u for sharing !

  • @Ultimateman
    @Ultimateman 3 роки тому

    Thanks this video came handy!

  • @1negroup841
    @1negroup841 2 роки тому +1

    Hey This was very Useful. I was kinda curious about what happens when you stop the timer. in unity it just keeps going, so i wonder if i am just using it wrong.

    • @veremiller2171
      @veremiller2171  2 роки тому +1

      Yeah it could definitely have different behaviors based on the environment it is running in.

  • @roumen1669
    @roumen1669 3 роки тому +1

    thank you very much!

  • @RyanBarkman-q6v
    @RyanBarkman-q6v Рік тому +1

    does not quite work for me, when the event gets called it crashes

  • @rudijonker6844
    @rudijonker6844 3 роки тому

    Thanks for the video.

  • @im1in260m
    @im1in260m 3 роки тому +1

    Does the code in the event handler execute on the same thread when using DipatcherTimer or is it a separate thread? Same question goes for the first example.

    • @veremiller2171
      @veremiller2171  3 роки тому

      That’s a really good question. I am going to take a guess here so don’t hold me 100% responsible for this but I think it uses a separate thread

  • @peterpotnik8243
    @peterpotnik8243 3 роки тому

    thanks, wery good explained and helpfoul

  • @jonsch7804
    @jonsch7804 Рік тому

    so to use timers for Microsoft Forms i would have to use dispatcher timer aswell right?

  • @phungaiong6058
    @phungaiong6058 4 місяці тому

    verrry niceeee

  • @ahmedel-hindawi9226
    @ahmedel-hindawi9226 3 роки тому +1

    Could you please tell me what monitor you are using?

  • @AarkazhiStudios
    @AarkazhiStudios 2 роки тому +1

    Most helpful tnq 💐

  • @abulchowdhury8170
    @abulchowdhury8170 3 роки тому

    hey do you know to make STOP sign for streets using c#?

  • @kormsd
    @kormsd 2 роки тому

    I dont understand why Timers are meant for static classes as they in themselves are instances

  • @NickProkhorenko
    @NickProkhorenko 2 роки тому +1

    I cant stop timer.

    • @bedirhantekeli1681
      @bedirhantekeli1681 2 роки тому

      did u find anything ?

    • @NickProkhorenko
      @NickProkhorenko 2 роки тому +1

      @@bedirhantekeli1681 Since that time, i already understood how timers work at all. And, my invoid construction was a little not right, i made many mistakes, yes... 😏. But now all works as well, so dont worry.

  • @dardimjs6171
    @dardimjs6171 Рік тому

    AAAAAAAAAIN ZÉ DA MANGA