YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
NetworkClock.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_OS_NETWORKCLOCK_H
7#define YARP_OS_NETWORKCLOCK_H
8
9#include <yarp/os/api.h>
10
11#include <yarp/os/Clock.h>
12
13#include <string>
14
15namespace yarp::os {
16
18{
19public:
21 virtual ~NetworkClock();
22
23 bool open(const std::string& clockSourcePortName, std::string localPortName = "");
24
25 double now() override;
26 void delay(double seconds) override;
27 bool isValid() const override;
28
29#ifndef DOXYGEN_SHOULD_SKIP_THIS
30private:
31 class Private;
32 Private* mPriv;
33#endif // DOXYGEN_SHOULD_SKIP_THIS
34};
35
36} // namespace yarp::os
37
38
39#endif // YARP_OS_NETWORKCLOCK_H
A mini-server for performing network communication in the background.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18