YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
Stamp.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-FileCopyrightText: 2006-2010 RobotCub Consortium
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7#ifndef YARP_OS_STAMP_H
8#define YARP_OS_STAMP_H
9
10#include <yarp/os/StampData.h>
11
12namespace yarp::os {
13
18{
19public:
23 explicit Stamp();
24
32 Stamp(int count, double time);
33
39 int getCount() const;
40
46 double getTime() const;
47
53 bool isValid() const;
54
61 int getMaxCount() const;
62
67 void update();
68
73 void update(double time);
74
75};
76
77} // namespace yarp::os
78
79#endif // YARP_OS_STAMP_H
Holds a time stamp and/or sequence number.
Definition StampData.h:26
An abstraction for a time stamp and/or sequence number.
Definition Stamp.h:18
An interface to the operating system, including Port based communication.
#define YARP_os_API
Definition api.h:18