YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Clock.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_CLOCK_H
7#define YARP_OS_CLOCK_H
8
9#include <yarp/os/api.h>
10
11namespace yarp::os {
12
14{
15public:
19 virtual ~Clock();
20
26 virtual double now() = 0;
27
32 virtual void delay(double seconds) = 0;
33
39 virtual bool isValid() const = 0;
40};
41
42} // namespace yarp::os
43
44#endif // YARP_OS_CLOCK_H
A mini-server for performing network communication in the background.
virtual void delay(double seconds)=0
Wait for a certain number of seconds.
virtual bool isValid() const =0
Check if time is valid (non-zero).
virtual ~Clock()
Destructor.
virtual double now()=0
Return the current time in seconds, relative to an arbitrary starting point.
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18