File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -164,12 +164,11 @@ class TRANTOR_EXPORT EventLoop : NonCopyable
164
164
runAfter(10min, task);
165
165
@endcode
166
166
*/
167
- TimerId runAfter (const std::chrono::duration<long double > &delay,
168
- const Func &cb)
167
+ TimerId runAfter (const std::chrono::duration<double > &delay, const Func &cb)
169
168
{
170
169
return runAfter (delay.count (), cb);
171
170
}
172
- TimerId runAfter (const std::chrono::duration<long double > &delay, Func &&cb)
171
+ TimerId runAfter (const std::chrono::duration<double > &delay, Func &&cb)
173
172
{
174
173
return runAfter (delay.count (), std::move (cb));
175
174
}
@@ -194,13 +193,12 @@ class TRANTOR_EXPORT EventLoop : NonCopyable
194
193
runEvery(0.1h, task);
195
194
@endcode
196
195
*/
197
- TimerId runEvery (const std::chrono::duration<long double > &interval,
196
+ TimerId runEvery (const std::chrono::duration<double > &interval,
198
197
const Func &cb)
199
198
{
200
199
return runEvery (interval.count (), cb);
201
200
}
202
- TimerId runEvery (const std::chrono::duration<long double > &interval,
203
- Func &&cb)
201
+ TimerId runEvery (const std::chrono::duration<double > &interval, Func &&cb)
204
202
{
205
203
return runEvery (interval.count (), std::move (cb));
206
204
}
You can’t perform that action at this time.
0 commit comments