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
11namespace yarp::os {
12
14{
15public:
16 double now() override;
17 void delay(double seconds) override;
18
19 bool isValid() const override;
20
21 static double nowSystem();
22 static void delaySystem(double seconds);
23};
24
25} // namespace yarp::os
26
27#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
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition: api.h:18