Paul Stewart | c2350ee | 2011-10-19 12:28:40 -0700 | [diff] [blame^] | 1 | // 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 | |
| 7 | namespace shill { |
| 8 | |
| 9 | static base::LazyInstance<Time> g_time(base::LINKER_INITIALIZED); |
| 10 | |
| 11 | Time::Time() { } |
| 12 | |
| 13 | Time::~Time() { } |
| 14 | |
| 15 | Time* Time::GetInstance() { |
| 16 | return g_time.Pointer(); |
| 17 | } |
| 18 | |
| 19 | int Time::GetTimeOfDay(struct timeval *tv, struct timezone *tz) { |
| 20 | return gettimeofday(tv, tz); |
| 21 | } |
| 22 | |
| 23 | } // namespace shill |