Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sending Time Over the Network  (Read 2515 times)

0 Members and 1 Guest are viewing this topic.

alext94

  • Newbie
  • *
  • Posts: 16
    • View Profile
Sending Time Over the Network
« 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 ?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10819
    • View Profile
    • development blog
    • Email
AW: Sending Time Over the Network
« Reply #1 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

alext94

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Sending Time Over the Network
« Reply #2 on: April 09, 2015, 10:44:14 pm »
Oh i'm using 2.0, should probably update.

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Sending Time Over the Network
« Reply #3 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
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor