Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / agk::Timer() return seconds or milliseconds? maybe there is a bug.

Author
Message
halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 17th Nov 2011 09:46
in my game ,I feel Timer() return seconds , instead of milliseconds.

How do others think about it?

The Miracrea Games
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 17th Nov 2011 10:08
It does return seconds but it's a float that's returned, IE. 1.0625 = 1 and 1/16th seconds.

If you want milliseconds you have to multiply by 1000.

halley
12
Years of Service
User Offline
Joined: 27th Apr 2011
Location: China
Posted: 17th Nov 2011 11:32
@baxslash : I see. Thank you.

The Miracrea Games

Login to post a reply

Server time is: 2024-04-25 13:40:41
Your offset time is: 2024-04-25 13:40:41