mirror of
https://github.com/google/benchmark.git
synced 2025-03-30 14:10:25 +08:00
revert more
This commit is contained in:
parent
85b7f64d1a
commit
685b105875
@ -20,7 +20,6 @@
|
||||
#include "internal_macros.h"
|
||||
|
||||
namespace benchmark {
|
||||
|
||||
#ifdef OS_WINDOWS
|
||||
// Window's _sleep takes milliseconds argument.
|
||||
void SleepForMilliseconds(int milliseconds) { _sleep(milliseconds); }
|
||||
|
@ -4,21 +4,18 @@
|
||||
#include <string>
|
||||
|
||||
namespace benchmark {
|
||||
|
||||
typedef double WallTime;
|
||||
|
||||
namespace walltime {
|
||||
|
||||
WallTime Now();
|
||||
|
||||
// GIVEN: walltime, generic format string (as understood by strftime),
|
||||
// a boolean flag specifying if the time is local or UTC (true=local).
|
||||
// RETURNS: the formatted string. ALSO RETURNS: the remaining number of
|
||||
// microseconds (never printed in the string since strftime does not
|
||||
// understand it)
|
||||
// microseconds (never printed in the string since strftime does not understand
|
||||
// it)
|
||||
std::string Print(WallTime time, const char *format, bool local,
|
||||
int *remainder_us);
|
||||
|
||||
} // end namespace walltime
|
||||
} // end namespace benchmark
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user