diff options
author | Ben Pfaff <blp@ovn.org> | 2019-06-11 09:55:16 -0700 |
---|---|---|
committer | Ben Pfaff <blp@ovn.org> | 2019-07-05 13:35:07 -0700 |
commit | 393f479c3ead487fb41c73b5aaa9554404e8e2b4 (patch) | |
tree | 5d2eb7bc7fa6fcc9d82ca04ee25b17e85a778b36 /include/openvswitch | |
parent | d2cb440c4e6a3fbb4357fdbb7ec599e5b3ce6b71 (diff) | |
download | openvswitch-393f479c3ead487fb41c73b5aaa9554404e8e2b4.tar.gz |
rconn: Increase precision of timers.
Until now, the rconn timers have been precise only to the nearest second.
This increases them to millisecond precision, which seems cleaner these
days.
Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'include/openvswitch')
-rw-r--r-- | include/openvswitch/rconn.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/openvswitch/rconn.h b/include/openvswitch/rconn.h index fd60a6ce1..25c18f97e 100644 --- a/include/openvswitch/rconn.h +++ b/include/openvswitch/rconn.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013, 2015, 2019 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -19,7 +19,6 @@ #include <stdbool.h> #include <stdint.h> -#include <time.h> #include "openvswitch/types.h" /* A wrapper around vconn that provides queuing and optionally reliability. @@ -88,8 +87,8 @@ int rconn_failure_duration(const struct rconn *); int rconn_get_version(const struct rconn *); const char *rconn_get_state(const struct rconn *); -time_t rconn_get_last_connection(const struct rconn *); -time_t rconn_get_last_disconnect(const struct rconn *); +long long int rconn_get_last_connection(const struct rconn *); +long long int rconn_get_last_disconnect(const struct rconn *); unsigned int rconn_get_connection_seqno(const struct rconn *); int rconn_get_last_error(const struct rconn *); unsigned int rconn_count_txqlen(const struct rconn *); |