menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripters
Timer
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Timer
LuaCymru
Join Date: 2015-01-22
Post Count: 394
#228338732
Saturday, December 02, 2017 6:57 PM GMT
Can somone script a timer that will count up (which includes numbers to 2 decimal places) I've tried this but it will not count accurately
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
TheCaptainTeach
Join Date: 2015-07-11
Post Count: 3846
#228338814
Saturday, December 02, 2017 6:58 PM GMT
while wait(1) do ######################### = ######################### + 2 end
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Aliics
Join Date: 2014-09-29
Post Count: 471
#228338971
Saturday, December 02, 2017 7:00 PM GMT
startTime = tick(); while (wait()) do local _lapsed = startTime - tick(); print(_lapsed); end -- I dunno, something like this?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
BeatableChicken
Join Date: 2014-03-30
Post Count: 12947
#228343312
Saturday, December 02, 2017 8:22 PM GMT
import time seconds = 0 while True: time.sleep(1) seconds +=1 print(seconds) # tested and works
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
BeatableChicken
Join Date: 2014-03-30
Post Count: 12947
#228343743
Saturday, December 02, 2017 8:32 PM GMT
if you want the 2 decimals you can do something like this import time seconds = 0 while True: time.sleep(.01) seconds += .01 print(seconds)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
128Gigabytes
Join Date: 2014-04-17
Post Count: 3616
#228343868
Saturday, December 02, 2017 8:35 PM GMT
import time start = time.time() while True: print(round((time.time() - start) * 100) / 100)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right