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;
92 detail::Clock*
const _impl;
95 #endif // LUNCHBOX_CLOCK_H
LUNCHBOX_API Clock()
Construct a new clock.
Defines export visibility macros for Lunchbox.
Basic type definitions not provided by the operating system.
A class for time measurements.
LUNCHBOX_API float getMilliSecondsf() const
Returns the millisecond part of the time elapsed since the last reset.
LUNCHBOX_API double getTimed() const
LUNCHBOX_API void reset()
Reset the base time of the clock to the current time.
LUNCHBOX_API int64_t getTime64() const
LUNCHBOX_API void set(const int64_t time)
Set the current time of the clock.
LUNCHBOX_API float getTimef() const
LUNCHBOX_API float resetTimef()
LUNCHBOX_API Clock & operator=(const Clock &ref)
Assignment operator.
LUNCHBOX_API ~Clock()
Destroy the clock.