19 #ifndef LUNCHBOX_CLOCK_H
20 #define LUNCHBOX_CLOCK_H
23 #include <lunchbox/compiler.h>
28 namespace detail {
class Clock; }
38 LUNCHBOX_API
Clock(
const Clock& from );
44 LUNCHBOX_API Clock &
operator= (
const Clock& ref);
50 LUNCHBOX_API
void reset();
53 LUNCHBOX_API
void set(
const int64_t time );
78 LUNCHBOX_API
double getTimed()
const;
81 detail::Clock*
const _impl;
84 #endif // LUNCHBOX_CLOCK_H
Defines export visibility macros for library Lunchbox.
Basic type definitions not provided by the operating system.
A class for time measurements.
void reset()
Reset the base time of the clock to the current time.
~Clock()
Destroy the clock.
void set(const int64_t time)
Set the current time of the clock.
Abstraction layer and common utilities for multi-threaded programming.
Clock()
Construct a new clock.
int64_t getTime64() const
Clock & operator=(const Clock &ref)
Assignment operator.