YARP
Yet Another Robot Platform
SystemClock.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2006-2020 Istituto Italiano di Tecnologia (IIT)
3  * All rights reserved.
4  *
5  * This software may be modified and distributed under the terms of the
6  * BSD-3-Clause license. See the accompanying LICENSE file for details.
7  */
8 
9 #ifndef YARP_OS_SYSTEMCLOCK_H
10 #define YARP_OS_SYSTEMCLOCK_H
11 
12 #include <yarp/os/Clock.h>
13 
14 namespace yarp {
15 namespace os {
16 
18 {
19 public:
20  double now() override;
21  void delay(double seconds) override;
22 
23  bool isValid() const override;
24 
25  static double nowSystem();
26  static void delaySystem(double seconds);
27 };
28 
29 } // namespace os
30 } // namespace yarp
31 
32 #endif // YARP_OS_SYSTEMCLOCK_H
yarp::os::Time::isValid
bool isValid()
Check if time is valid (non-zero).
Definition: Time.cpp:317
yarp::os::Clock
Definition: Clock.h:18
YARP_os_API
#define YARP_os_API
Definition: api.h:19
yarp::os::Time::now
double now()
Return the current time in seconds, relative to an arbitrary starting point.
Definition: Time.cpp:124
Clock.h
yarp::os::SystemClock
Definition: SystemClock.h:18
yarp
The main, catch-all namespace for YARP.
Definition: environment.h:18
yarp::os::Time::delay
void delay(double seconds)
Wait for a certain number of seconds.
Definition: Time.cpp:114