SFML community forums

Help => Network => Topic started by: alext94 on April 09, 2015, 12:57:18 am

Title: Sending Time Over the Network
Post by: alext94 on April 09, 2015, 12:57:18 am
When i send a packet the last think i put into the packet is the local time that it was sent. For this i am using chrono, but the problem is that it returns a INT64 which isn't supported. If I cast the data into a different type it just isn't precise enough! I cant use sf clock as I need to use the local time so i can measure the Round Trip time of the packet. So has any one had this problem and how did they get around it ?
Title: AW: Sending Time Over the Network
Post by: eXpl0it3r on April 09, 2015, 07:06:25 am
And what makes you think that int64 is not supported?
http://www.sfml-dev.org/documentation/2.2/classsf_1_1Packet.php
Title: Re: Sending Time Over the Network
Post by: alext94 on April 09, 2015, 10:44:14 pm
Oh i'm using 2.0, should probably update.
Title: Re: Sending Time Over the Network
Post by: zsbzsb on April 10, 2015, 12:44:42 am
You definitely should, there has been countless issues fixed since the 2.0 release.  ;)

http://en.sfml-dev.org/forums/index.php?topic=76.msg86454#msg86454