ZG  "1.00
 All Classes Namespaces Files Functions Variables Enumerator Friends Macros Pages
INetworkTimeProvider.h
Go to the documentation of this file.
1 #ifndef INetworkTimeProvider_h
2 #define INetworkTimeProvider_h
3 
4 #include "zg/ZGNameSpace.h"
5 
6 namespace zg
7 {
8 
11 {
12 public:
18  virtual uint64 GetNetworkTime64() const = 0;
19 
24  virtual uint64 GetRunTime64ForNetworkTime64(uint64 networkTime64TimeStamp) const = 0;
25 
30  virtual uint64 GetNetworkTime64ForRunTime64(uint64 runTime64TimeStamp) const = 0;
31 
35  virtual int64 GetToNetworkTimeOffset() const = 0;
36 };
37 
38 }; // end namespace zg
39 
40 #endif
This is an abstract interface for an object that can provide us with network-clock-time values...
The zg namespace contains the public API of the ZG library.
virtual uint64 GetRunTime64ForNetworkTime64(uint64 networkTime64TimeStamp) const =0
Given a network-time-clock-value (i.e.
virtual int64 GetToNetworkTimeOffset() const =0
Returns the number of microseconds that should be added to a GetRunTime64() value to turn it into a G...
virtual uint64 GetNetworkTime64() const =0
Returns the current time according to the network-time-clock, in microseconds.
virtual uint64 GetNetworkTime64ForRunTime64(uint64 runTime64TimeStamp) const =0
Given a local-time-clock-value (i.e.