Skip to main content

Report this content

We want the Dreams coMmunity to be a safe, diverse and tolerant place for everyone, no matter their age, gender, race, sexual orientation or otherwise. If you believe this content to contradict these principles, you can file a report for our coMmunity teams to investigate.

Note that misuse of the reporting tool will not be tolerated.

Item being reported:

A forum post by indefinido_

I've set up some simple logic to count time, but it's a bit off. I've used a counter, and it seems it does not update as fast as it needs.
I'm probably overlooking a better and/or simpler way to do it, so: how do I get a precise input of time passed?

Picture 1 is the logic for each time counter (picture 1-B shows the gadgets expanded). The setup is the following: the timer is set to reach determined limit. When it does, it adds that value to a variable initially set to zero, and resets itself.
I've made 3 of these, with max timer values of 0.1s, 0.2s and 1.0s, and compared the time counted by each with a the time shown directly by a timer (picture 2).
Pictures numered 3 are the results as time passed.

At the last picture 48.7s had passed, and the counters were showing, respectively, 36.5, 41.6, and 47.0.

Thanks!

Oh dear! Your browser is either unsupported or there has been a problem loading the page.