YARP
Yet Another Robot Platform
Clock.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_CLOCK_H
10
#define YARP_OS_CLOCK_H
11
12
#include <
yarp/os/api.h
>
13
14
namespace
yarp
{
15
namespace
os {
16
17
class
YARP_os_API
Clock
18
{
19
public
:
23
virtual
~Clock
();
24
30
virtual
double
now
() = 0;
31
36
virtual
void
delay
(
double
seconds) = 0;
37
43
virtual
bool
isValid
()
const
= 0;
44
};
45
46
}
// namespace os
47
}
// namespace yarp
48
49
#endif // YARP_OS_CLOCK_H
yarp::os::Clock::~Clock
virtual ~Clock()
Destructor.
yarp::os::Clock
Definition:
Clock.h:18
yarp::os::Clock::delay
virtual void delay(double seconds)=0
Wait for a certain number of seconds.
api.h
YARP_os_API
#define YARP_os_API
Definition:
api.h:19
yarp::os::Clock::now
virtual double now()=0
Return the current time in seconds, relative to an arbitrary starting point.
yarp
The main, catch-all namespace for YARP.
Definition:
environment.h:18
yarp::os::Clock::isValid
virtual bool isValid() const =0
Check if time is valid (non-zero).
YARP
3.4.100+20201223.2+gitb8ea4d712
src
libYARP_os
src
yarp
os
Clock.h
Generated on Sun Jan 3 2021 02:46:24 for YARP by
1.8.20