Timer (Very Simple)

Discussion in '3DS - Homebrew Development and Emulators' started by Agent Moose, Jan 8, 2015.

  1. Agent Moose
    OP

    Agent Moose GBAtemp Fan

    Member
    2
    Dec 6, 2014
    United States
    So I hadn't seen a timer (rather than the actual osGetTime() function that just outputs the actual time) so I decided to make one. who knows, there might be one already made that I don't know about.

    Anyway, As the title says, this is a timer, a very simple timer. It's more of a code that others can use than your homebrew application. (This is not a stopwatch or anything of the sort...although it can be made into one).

    Inside the .zip file is the source and the .3dsx.

    there are comments in the code saying what each thing does, as well as a clock that counts the current time down to the nanosecond.

    I hope you all enjoy ^^

    EDIT: Wow I was tired last night...I didn't even tell you much about what all it does:
    It's able to count up to a certain number (in the example code I have it go to 60 seconds or 1 minute) and then you can just use an if statement to say what happens if it reaches 30 seconds or 60 seconds or whatever you want.
     

    Attached Files:

  2. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Wait, if it's not a stopwatch and it doesn't display the current time, what does it even do?..
     
  3. Rinnegatamante

    Rinnegatamante GBAtemp Psycho!

    Member
    13
    Nov 24, 2014
    Italy
    Bologna
  4. Agent Moose
    OP

    Agent Moose GBAtemp Fan

    Member
    2
    Dec 6, 2014
    United States
    As I said in the first post, it's more of a code that others can use. You can make a stopwatch very easily from it and it does display the time. but again, it's more of a utility code than a homebrew app/game.

    Oh, cool! I actually should of known you would have made one. ^^
     
  5. DarkFlare69

    DarkFlare69 GBAtemp Psycho!

    Member
    11
    Dec 8, 2014
    United States
    Ohio
    Here is a short demo video of Timer:
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice