To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3272
    TIME STAMP for a LNP distributed robot —CarlosLuis Rendón Monterroso
   Hi, I'd like to make a basic implementation of a time stamp on a distributed schame, using Lamport's algorithm. It states basically that when a node receives a message, it get the time stamp that's contained on it, and compares with it's own, if the (...) (21 years ago, 7-May-03, to lugnet.robotics.rcx.legos)
   
        Re: TIME STAMP for a LNP distributed robot —Mark Riley
   Hi, The sys_time variable is the basic timekeeper for BrickOS. It is a 32-bit integer that is incremented every millisecond by the kernel. In older versions of the kernel you could access the variable directly, however, in 0.2.6.10 and later you (...) (21 years ago, 7-May-03, to lugnet.robotics.rcx.legos)
   
        Re: TIME STAMP for a LNP distributed robot —Mark Riley
   BTW, make sure you include: #include <time.h> Otherwise, get_system_up_time() will only return 16 bits! Mark (21 years ago, 7-May-03, to lugnet.robotics.rcx.legos)
   
        Re: TIME STAMP for a LNP distributed robot —CarlosLuis Rendón Monterroso
   Thanks Mark for your idea, it's better to have a different global time than the one of the kernel. Best Regards, CarlosLuis Rendon M. "Mark Riley" <markril@hotmail.com> wrote in message news:HEIyDt.16s5@lugnet.com... (...) (21 years ago, 7-May-03, to lugnet.robotics.rcx.legos)
 

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR