![]() |
RflySimSDK v3.05
RflySimSDK说明文档
|
#include <vrpn_LamportClock.h>
Public 成员函数 | |
vrpn_LamportClock (int numHosts, int ourIndex) | |
void | receive (const vrpn_LamportTimestamp &) |
vrpn_LamportTimestamp * | getTimestampAndAdvance (void) |
Increments the current timestamp and returns it. | |
Implements a distributed event clock as defined by Leslie Lamport in some seminal papers I can't find my copies of, for use by people who want to sequence events without relying on synchronization of wallclocks.
vrpn_LamportTimestamp * getTimestampAndAdvance | ( | void | ) |
Increments the current timestamp and returns it.
void receive | ( | const vrpn_LamportTimestamp & | ) |
Updates this clock to reflect a timestamp received from another clock/host.