HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Reading elapsed gametime

11-25-2007, 11:40 PM#1
Fire-Dragon-DoL
i really NEED to read the elapsed game time

however i must know 2 things(if this is possible)
-Does it restart in some way?
-How can i read that? (a function like GetElapsedGameTime should be useful)
-Should have a precision, at least, of decimal in seconds (0.1)

Thanks for suggestion
11-26-2007, 12:19 AM#2
Dil999
Simply start a timer on map init, which lasts for 100000000 seconds, and get the elapsed time on that timer.
11-26-2007, 01:14 AM#3
Vexorian
Quote:
Originally Posted by Dil999
Simply start a timer on map init, which lasts for 100000000 seconds, and get the elapsed time on that timer.
It is not exactly simple but it is the only way to do it accurately without going to extra pain.

The reason blizz didn't add this ultra useful native will remain a mistery. Nah, it is not a mistery, they didn't need it for any campaign so they didn't add it.
11-26-2007, 11:55 AM#4
Fire-Dragon-DoL
Quote:
Originally Posted by Vexorian
It is not exactly simple but it is the only way to do it accurately without going to extra pain.

The reason blizz didn't add this ultra useful native will remain a mistery. Nah, it is not a mistery, they didn't need it for any campaign so they didn't add it.

yeah...on other good editors i used this functions to create some good effects on spells or things like that...

however, it's not really clean, but i hope no one will play 1127 days on the same map without closing it :P