From 251de89b5cb90ddca56bee21c542edb40ca5ff24 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 18 Jun 2017 15:36:39 -0400 Subject: HttpRequest: Use std::chrono for indicating time periods Allows the use of chrono time points, on top of being more indicative of time periods used at call sites, if custom timeouts are specified. --- Source/Core/Common/HttpRequest.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/Core/Common/HttpRequest.h') 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 #include #include #include @@ -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; -- cgit v1.2.3