YARP
Yet Another Robot Platform
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 
11 namespace yarp {
12 namespace os {
13 
15 {
16 public:
20  virtual ~Clock();
21 
27  virtual double now() = 0;
28 
33  virtual void delay(double seconds) = 0;
34 
40  virtual bool isValid() const = 0;
41 };
42 
43 } // namespace os
44 } // namespace yarp
45 
46 #endif // YARP_OS_CLOCK_H
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.
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18