#Hour Counter

1 messages · Page 1 of 1 (latest)

grizzled pasture
#

Have a float variable named
HoursInRoom configure it to cloud
event reciever 30hz set the float variable to (itself + (delta time / 3600)

#

@gusty frost

#

If u want in hours then divide by 360
Minutes divide By 60
Seconds don't divide just delta time

grizzled pasture
#

Oh ya

final crescent
#

Send a photo of your circuits

#

I would instead simply add non-divided deltatime to the variable, and then divide the variable's value by 3600 in order to get hours. This way, you will have higher decimal accuracy, and a little bit more resting heat

grizzled pasture
#

Just add by delta time

#

Divide the variable output by 3600

#

@gusty frost

#

event reciever update 30 hz set the float variable to (itself + delta time)

#

This will output in seconds

#

Divide the float variable output by 3600 to get hours

#

Event reciever update 30hz outputs 30 executions per second
So u would need 1/30 which is delta time

#

Supposed to

#

Yes this works