26 lines
627 B
C++
26 lines
627 B
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef BUTIL_DEFAULT_CLOCK_H_
|
|
#define BUTIL_DEFAULT_CLOCK_H_
|
|
|
|
#include "butil/base_export.h"
|
|
#include "butil/compiler_specific.h"
|
|
#include "butil/time/clock.h"
|
|
|
|
namespace butil {
|
|
|
|
// DefaultClock is a Clock implementation that uses Time::Now().
|
|
class BUTIL_EXPORT DefaultClock : public Clock {
|
|
public:
|
|
virtual ~DefaultClock();
|
|
|
|
// Simply returns Time::Now().
|
|
virtual Time Now() OVERRIDE;
|
|
};
|
|
|
|
} // namespace butil
|
|
|
|
#endif // BUTIL_DEFAULT_CLOCK_H_
|