diff options
author | Jordan Bayles <jophba@chromium.org> | 2020-05-15 17:08:11 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-05-18 17:39:18 +0000 |
commit | ca609c305ed10d10cc2f8c07e772f17d5f94f474 (patch) | |
tree | 4e36a1ce3c9877237f4dab4d4bba58d5919fb1c8 /cast/streaming/sender_packet_router.cc | |
parent | 4a4a818a80ec7af2e03592818a624553f23eb9ef (diff) | |
download | openscreen-ca609c305ed10d10cc2f8c07e772f17d5f94f474.tar.gz |
Time and clock::duration cleanups
This patch contains a few minor time-related cleanups:
1. Instead of having using statements literally everywhere, moved to
using statements for common std::chrono types in the trivial clock
traits header.
2. Removed some Clock::duration types in favor of
std::chrono::milliseconds, because Clock::duration is frequently used
incorrectly--it's microseconds, not milliseconds, so typical
instantiation values of 50 are essentially 0 seconds.
Change-Id: If2b30ca7605bf40165dfb6e76f8386ffa1c0eb87
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2204429
Reviewed-by: Ryan Keane <rwkeane@google.com>
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/streaming/sender_packet_router.cc')
-rw-r--r-- | cast/streaming/sender_packet_router.cc | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/cast/streaming/sender_packet_router.cc b/cast/streaming/sender_packet_router.cc index b505b996..71fb2991 100644 --- a/cast/streaming/sender_packet_router.cc +++ b/cast/streaming/sender_packet_router.cc @@ -16,10 +16,6 @@ namespace openscreen { namespace cast { -using std::chrono::duration_cast; -using std::chrono::milliseconds; -using std::chrono::seconds; - SenderPacketRouter::SenderPacketRouter(Environment* environment, int max_burst_bitrate) : SenderPacketRouter( |