14#ifndef ZYPP_NG_BASE_TIMER_H_INCLUDED 
   15#define ZYPP_NG_BASE_TIMER_H_INCLUDED 
   18#include <zypp-core/zyppng/base/Base> 
   19#include <zypp-core/zyppng/base/Signals> 
   74  static uint64_t 
now ();
 
  128  void start ( uint64_t timeout );
 
 
The Timer class provides repetitive and single-shot timers.
static uint64_t elapsedSince(const uint64_t start)
static std::shared_ptr< Timer > create()
Creates a new Timer object, the timer is not started at this point.
SignalProxy< void(Timer &t)> sigExpired()
This signal is always emitted when the timer expires.
std::shared_ptr< Timer > Ptr
std::shared_ptr< Timer > WeakPtr
friend class EventDispatcher
void setSingleShot(bool singleShot=true)
Sets the timer to trigger only once, after it has expired once.
uint64_t remaining() const
uint64_t interval() const
uint64_t expire()
Advances the internal clock of the timer, if the timer expires the sigExpired signal is emitted.
void stop()
Stops the timer if it is running. The.
#define ZYPP_DECLARE_PRIVATE(Class)
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)