RobotsIO
Loading...
Searching...
No Matches
ClockYarp.h
1/*
2 * Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#ifndef ROBOTSIO_CLOCKYARP_H
9#define ROBOTSIO_CLOCKYARP_H
10
11#include <RobotsIO/Utils/Clock.h>
12
13#include <yarp/os/Network.h>
14
15namespace RobotsIO {
16 namespace Utils {
17 class ClockYarp;
18 }
19}
20
22{
23public:
24 ClockYarp();
25
26 virtual ~ClockYarp();
27
28 double now() const override;
29
30 void delay(const int& milliseconds) const override;
31
32private:
33 yarp::os::Network yarp_;
34
35 const std::string log_name_ = "ClockYarp";
36};
37
38#endif /* ROBOTSIO_CLOCKYARP_H */