11 #include "Stopwatch.h"    12 #include "threads/CriticalSection.h"    13 #include "threads/Thread.h"    22   std::string m_strCommand;
    31   void Start(
const std::string& strName, 
float n_secs, 
const std::string& strCommand, 
bool bSilent = 
false, 
bool bLoop = 
false);
    32   inline bool IsRunning()
 const    37   inline bool HasAlarm(
const std::string& strName)
    43     return (m_event.find(strName) != m_event.end());
    46   double GetRemaining(
const std::string& strName)
    48     std::map<std::string,SAlarmClockEvent>::iterator iter;
    49     if ((iter=m_event.find(strName)) != m_event.end())
    51       return iter->second.m_fSecs - 
static_cast<double>(iter->second.watch.IsRunning()
    52                                                             ? iter->second.watch.GetElapsedSeconds()
    59   void Stop(
const std::string& strName, 
bool bSilent = 
false);
    60   void Process() 
override;
    62   std::map<std::string,SAlarmClockEvent> m_event;
    63   CCriticalSection m_events;
    65   bool m_bIsRunning = 
false;
 Definition: Stopwatch.h:14
Definition: AlarmClock.h:18
Definition: AlarmClock.h:26