I'm not sure how to store time in a variable without it having the value of current run time
I've never done this before.
( don't look to much into the scenario as it's the theory of storing time I'm interested in learning. )
(Id have the same question about timers too)
I have a thread the thread sleeps for a time period called thread_sleep_time
I created one more variable called thread_total_sleep_time that is thread_total_sleep_time += thread_sleep_time, every time the thread is sleeps.
but how can I capture store a time in a variable called previous_time ? must I use keyword final so it never updates ?
for comparing against the current time.