A counter of time that start from the time that I want

Andy Coder

New member
Hi,
Now I explain you what I'm trying to make:
I want a macro that count my playing time of a game and store it. To do this I made a macro that start a stopwatch when I run the game, and stop it when I close the game, and it starts from the last time when I re-run the game. But I want that the stopwatch starts from 6 hours, because before making this rom I played 6 hours in that game. How I make it? Either do you know another way to do that I'm trying to do?
Thank you.
 

FrameXX

Well-known member
There's no simple way to manually set value of stopwatches, so you can just let them run for 6 hours to get to that time or add that 6 hours to the stopwatch somewhere else in your macro output.
 

Dm114

Well-known member
Hi,
Now I explain you what I'm trying to make:
I want a macro that count my playing time of a game and store it. To do this I made a macro that start a stopwatch when I run the game, and stop it when I close the game, and it starts from the last time when I re-run the game. But I want that the stopwatch starts from 6 hours, because before making this rom I played 6 hours in that game. How I make it? Either do you know another way to do that I'm trying to do?
Thank you.
Stopwatch is probably not the best way to achieve what you want to because stopwatches are reset every time MD (re)boots.

You'd better use a local integer variable and calculate elapsed time between end system time and start system time when you launch/close your app.

If you need further help, tell us.
 

Andy Coder

New member
Stopwatch is probably not the best way to achieve what you want to because stopwatches are reset every time MD (re)boots.

You'd better use a local integer variable and calculate elapsed time between end system time and start system time when you launch/close your app.

If you need further help, tell us.
It's that I did. The problem is another.
 
Top