AutoHotkey Community

It is currently May 26th, 2012, 5:20 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Universal Time Variable
PostPosted: March 2nd, 2009, 1:42 am 
Offline

Joined: May 14th, 2008, 9:48 pm
Posts: 110
Hey, I've been using A_NowUTC to get the same time format and time from computers in separate locations. Unfortunately, varying on a few seconds, they are never on the same time.

Basically something like this

PC1 - 20090302003958
PC2 - 20090302003952
PC3 - 20090302003959

Does anyone know of a more reliable method to call time in the same format on different computers, or anything that I can identify as time?
Basically I'm trying to time how long it takes for a message to get from one computer to the next, and how long it takes to send that message back and receive on the other end without accessing the internet to retrieve a time. I'm trying to measure this in seconds or preferably, ms so I can accurately measure the time.


Any help is appreciated

Thanks
________
Daihatsu hijet specifications


Last edited by jmanx on February 10th, 2011, 9:41 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 2nd, 2009, 2:42 am 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
the problem is the time variables are all for local time so unless you plan to sync them som how there will always be variance
the only thing you can do with any degree of reliability is ping which sends and receives an echo

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 12:37 am 
Offline

Joined: May 14th, 2008, 9:48 pm
Posts: 110
Would anyone know anything about timing it locally in ms?

Basically, I'll send the server a message, and time how long it takes to come back.

So all on the same computer, how can I time these events in ms?
________
Yamaha xt 125 r


Last edited by jmanx on February 10th, 2011, 9:41 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 4:05 am 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
I think this may serve your purposes: AutoHotkey Benchmark Script (ABS) v1.0 by DerRaphael

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 3:34 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
jmanx wrote:
So all on the same computer, how can I time these events in ms?
Ping does exactly that its on your pc right now
you can use it
go ahead try

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 3rd, 2009, 8:41 pm 
Offline

Joined: May 14th, 2008, 9:48 pm
Posts: 110
I'm not going to use ping, it's not accurate enough. I need to time my own message but it's ok cause I'm just going to time it from when I send and when it receives a message backing using A_Tickcount. Please don't go posting about this talking about "I hate it when people ask stupid questions then come up with their own answer"
________
CALIFORNIA MEDICAL MARIJUANA DISPENSARY


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, mrhobbeys, Mtes, perlsmith, rbrtryn, stanman, Yahoo [Bot] and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group