diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-06-18 23:13:52 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-06-18 23:13:52 +0200 |
| commit | 9a1503a75c38b8d940f8bcd6446d87d26895587a (patch) | |
| tree | 91d56796ea8cc0b44971099095d406031dc63011 /Source/Core/Common/HttpRequest.h | |
| parent | 41f6d7be0de99b1b7fb9f585cc1c169b87d98129 (diff) | |
| parent | 251de89b5cb90ddca56bee21c542edb40ca5ff24 (diff) | |
Merge pull request #5642 from lioncash/chrono
HttpRequest: Use std::chrono for indicating time periods
Diffstat (limited to 'Source/Core/Common/HttpRequest.h')
| -rw-r--r-- | Source/Core/Common/HttpRequest.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/Common/HttpRequest.h b/Source/Core/Common/HttpRequest.h index 4a1d7730d0..2a6590c1ca 100644 --- a/Source/Core/Common/HttpRequest.h +++ b/Source/Core/Common/HttpRequest.h @@ -4,6 +4,7 @@ #pragma once +#include <chrono> #include <map> #include <memory> #include <optional> @@ -17,7 +18,7 @@ namespace Common class HttpRequest final { public: - HttpRequest(int timeout_ms = 3000); + explicit HttpRequest(std::chrono::milliseconds timeout_ms = std::chrono::milliseconds{3000}); ~HttpRequest(); bool IsValid() const; |
