YARP
Yet Another Robot Platform
SystemClock.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_SYSTEMCLOCK_H
7 #define YARP_OS_SYSTEMCLOCK_H
8 
9 #include <yarp/os/Clock.h>
10 
11 namespace yarp {
12 namespace os {
13 
15 {
16 public:
17  double now() override;
18  void delay(double seconds) override;
19 
20  bool isValid() const override;
21 
22  static double nowSystem();
23  static void delaySystem(double seconds);
24 };
25 
26 } // namespace os
27 } // namespace yarp
28 
29 #endif // YARP_OS_SYSTEMCLOCK_H
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:314
double now()
Return the current time in seconds, relative to an arbitrary starting point.
Definition: Time.cpp:121
void delay(double seconds)
Wait for a certain number of seconds.
Definition: Time.cpp:111
The main, catch-all namespace for YARP.
Definition: dirs.h:16
#define YARP_os_API
Definition: api.h:18