mirror of
https://github.com/google/benchmark.git
synced 2025-03-05 23:00:10 +08:00
dynamically allocate WallTimeImp
This commit is contained in:
parent
e0441ef5d0
commit
bcb933a9fb
@ -69,8 +69,8 @@ public:
|
|||||||
WallTime Now();
|
WallTime Now();
|
||||||
|
|
||||||
static WallTimeImp& GetWallTimeImp() {
|
static WallTimeImp& GetWallTimeImp() {
|
||||||
static WallTimeImp imp;
|
static WallTimeImp* imp = new WallTimeImp();
|
||||||
return imp;
|
return *imp;
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user