shill: Create an asynchronous resolver object

Resolve DNS requests using the c-ares library but
using the shill event loop to handle events.

BUG=chromium-os:21664
TEST=New unit test

Change-Id: I99776b6cc74977d31198c67357c42a75f4047942
Reviewed-on: https://gerrit.chromium.org/gerrit/10328
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Paul Stewart <pstew@chromium.org>
diff --git a/shill_time.cc b/shill_time.cc
new file mode 100644
index 0000000..7bae785
--- /dev/null
+++ b/shill_time.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "shill/shill_time.h"
+
+namespace shill {
+
+static base::LazyInstance<Time> g_time(base::LINKER_INITIALIZED);
+
+Time::Time() { }
+
+Time::~Time() { }
+
+Time* Time::GetInstance() {
+  return g_time.Pointer();
+}
+
+int Time::GetTimeOfDay(struct timeval *tv, struct timezone *tz) {
+  return gettimeofday(tv, tz);
+}
+
+}  // namespace shill