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