intervaltimer.h
// Copyright (c) 2004 David Muse
// See the COPYING file for more information.
#ifndef RUDIMENTS_INTERVALTIMER_H
#define RUDIMENTS_INTERVALTIMER_H
#include <rudiments/private/intervaltimerincludes.h>
class intervaltimerprivate;
class RUDIMENTS_DLLSPEC intervaltimer {
public:
intervaltimer(int32_t which);
~intervaltimer();
void initialize();
void setInitialInterval(int32_t seconds,
int32_t microseconds);
void setPeriodicInterval(int32_t seconds,
int32_t microseconds);
void setIntervals(int32_t seconds, int32_t microseconds);
void getInitialInterval(int32_t *seconds,
int32_t *microseconds) const;
void getPeriodicInterval(int32_t *seconds,
int32_t *microseconds) const;
bool start() const;
bool start(int32_t *seconds, int32_t *microseconds) const;
bool getTimeRemaining(int32_t *seconds,
int32_t *microseconds) const;
bool stop();
#include <rudiments/private/intervaltimer.h>
};
#endif