Pages: [1]
Author Topic: How to correct for slow/fast clock  (Read 4053 times)
catdotgif
Newbie
*
Posts: 18


View Profile
« on: March 29, 2012, 11:17:09 PM »

Hi All,
     Has anyone written some code to correct for a fast/slow clock?  In the IN-17 code, nonentity has:
Code:
// Get time in seconds.
  long time = (runTime) / 1000; //////////change this value to speed up or slow down the clock

So I guess I get that, if for example my clock was 7 minutes fast per six month period, and there are 259200 minutes in a six month period, then I should...?

I can work out a time correction code, but before I do, has anyone already done this?  Just hate to duplicate labor.

thx!
Logged

nonentity
Co-Owner, Robotpirate
Administrator
Full Member
*****
Posts: 182



View Profile
« Reply #1 on: April 09, 2012, 08:24:51 AM »

Hi All,
     Has anyone written some code to correct for a fast/slow clock?  In the IN-17 code, nonentity has:
Code:
// Get time in seconds.
  long time = (runTime) / 1000; //////////change this value to speed up or slow down the clock

So I guess I get that, if for example my clock was 7 minutes fast per six month period, and there are 259200 minutes in a six month period, then I should...?

I can work out a time correction code, but before I do, has anyone already done this?  Just hate to duplicate labor.

thx!

As far as I know, no one has made any corrected code like you describe...
Logged

nonentity
Robotpirate Founder
www.robotpirate.com

Chad
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: June 22, 2012, 09:20:54 PM »

Did anyone find a good setting? Mine is fast at 1000 and to slow at 1001
Logged

Pages: [1]
Print
Jump to: