ping: don't call monotonic_us twice per sending the ping
authorDenys Vlasenko <vda.linux@googlemail.com>
Tue, 13 Feb 2018 22:53:24 +0000 (23:53 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Tue, 13 Feb 2018 22:53:24 +0000 (23:53 +0100)
commit256adb0f99ab3485b4c9243a76dc0df1738f08b1
tree61c2a8b06115d783de3fca34e29962a041c8016b
parent7189af847fd8a54a85f08e9bf51cd103f0d87393
ping: don't call monotonic_us twice per sending the ping

function                                             old     new   delta
sendping6                                             80      85      +5
sendping4                                            106     111      +5
sendping_tail                                        209     204      -5
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 2/1 up/down: 10/-5)               Total: 5 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/ping.c