libbgp
0.6
A C++ BGP Library.
src
clock.h
Go to the documentation of this file.
1
11
#ifndef CLOCK_H_
12
#define CLOCK_H_
13
#include <stdint.h>
14
15
namespace
libbgp
{
16
17
// Clock: interface for bgp-fsm to get current time (for time-based events like
18
// hold_timer)
19
31
class
Clock
{
32
public
:
33
39
virtual
uint64_t
getTime
()
const
= 0;
40
virtual
~
Clock
() {}
41
};
42
43
}
44
45
#endif // CLOCK_H_
libbgp
Definition:
bgp-afi.h:14
libbgp::Clock::getTime
virtual uint64_t getTime() const =0
Get the current time.
libbgp::Clock
The Clock interface.
Definition:
clock.h:31
Generated by
1.8.13