summaryrefslogtreecommitdiff
path: root/src/TimeBasedCommand.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-08 02:03:31 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2015-06-09 02:05:34 +0900
commit99cd73c0926f0c07d27777fde2f15816e8040030 (patch)
tree7c6a077b0590c49029c76686afb9c2ab1d00bb6d /src/TimeBasedCommand.h
parent2874f6ab095a30a4d297cdc85fa3730bec41b1c2 (diff)
Replace timer facility with chrono lib
Diffstat (limited to 'src/TimeBasedCommand.h')
-rw-r--r--src/TimeBasedCommand.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TimeBasedCommand.h b/src/TimeBasedCommand.h
index 7b26c93b..e5082cad 100644
--- a/src/TimeBasedCommand.h
+++ b/src/TimeBasedCommand.h
@@ -49,7 +49,7 @@ private:
Timer checkPoint_;
- time_t interval_; // unit: sec
+ std::chrono::seconds interval_;
/**
* setting exit_ to true if this command's job has finished and you want to
@@ -73,7 +73,7 @@ protected:
exit_ = true;
}
- time_t getInterval() const
+ const std::chrono::seconds& getInterval() const
{
return interval_;
}
@@ -95,8 +95,8 @@ public:
virtual void postProcess() {};
public:
- TimeBasedCommand(cuid_t cuid, DownloadEngine* e, time_t interval,
- bool routineCommand = false);
+ TimeBasedCommand(cuid_t cuid, DownloadEngine* e,
+ std::chrono::seconds interval, bool routineCommand = false);
virtual ~TimeBasedCommand();