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 / GetNetworkClientPing, float returned seconds or milliseconds?

Author
Message
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 24th Apr 2018 10:54
Is the float returned by GetNetworkClientPing measured as 1.0 second or 1.0 millisecond?

To the dev team, I think it would be a good idea to clarify this in the help files
13/0
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 24th Apr 2018 14:13
The value is in seconds. I have updated the help files for the next version
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 24th Apr 2018 18:57
Thanks Paul
13/0
Carharttguy
7
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 24th Apr 2018 20:08
Doesn't it make more sense to return it as an integer in ms? Almost everyone (everything?) measures ping in ms, isn't it?
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th Apr 2018 17:19
All the time variables in AppGameKit are floats in seconds, so it's returned similarly, and does provide more precision than plain milliseconds if that's useful. But it would be a simple conversion to milliseconds if that's what you needed.

Login to post a reply

Server time is: 2024-03-28 22:26:56
Your offset time is: 2024-03-28 22:26:56