blob: 7bae785c5767635dea360eb54af8e58a2b8d4ddc [file] [log] [blame]
Paul Stewartc2350ee2011-10-19 12:28:40 -07001// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "shill/shill_time.h"
6
7namespace shill {
8
9static base::LazyInstance<Time> g_time(base::LINKER_INITIALIZED);
10
11Time::Time() { }
12
13Time::~Time() { }
14
15Time* Time::GetInstance() {
16 return g_time.Pointer();
17}
18
19int Time::GetTimeOfDay(struct timeval *tv, struct timezone *tz) {
20 return gettimeofday(tv, tz);
21}
22
23} // namespace shill