Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bd36f62f authored by Bernie Innocenti's avatar Bernie Innocenti Committed by android-build-merger
Browse files

Merge "Remove floating-point time functions from StopWatch" am: 8fc39b43ac

am: 938631611b

Change-Id: I623bd05a60e84b5a028ab05e32dbb942b501051a
parents 64a8f0d7 e65f165c
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -18,9 +18,10 @@
#undef NDEBUG
#endif

#include <vector>
#include <netdb.h>

#include <openssl/base64.h>
#include <iostream>
#include <vector>

#include <android-base/strings.h>
#include <android/net/IDnsResolver.h>
@@ -28,8 +29,8 @@
#include <binder/IServiceManager.h>
#include <gmock/gmock-matchers.h>
#include <gtest/gtest.h>
#include <netdb.h>
#include <netdutils/Stopwatch.h>
#include <openssl/base64.h>
#include "tests/BaseTestMetricsListener.h"
#include "tests/TestMetrics.h"

@@ -82,7 +83,9 @@ class DnsResolverBinderTest : public ::testing::Test {
class TimedOperation : public Stopwatch {
  public:
    explicit TimedOperation(const std::string& name) : mName(name) {}
    virtual ~TimedOperation() { fprintf(stderr, "    %s: %6.1f ms\n", mName.c_str(), timeTaken()); }
    virtual ~TimedOperation() {
        std::cerr << "    " << mName << ": " << timeTakenUs() << "us" << std::endl;
    }

  private:
    std::string mName;