mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-19 04:39:36 +00:00
Use CACurrentMediaTime for performance benchmarks (#2185)
This commit is contained in:
parent
5c42bb4e2f
commit
2c8a2d0bbd
@ -100,9 +100,9 @@
|
||||
@autoreleasepool {
|
||||
block(^{
|
||||
ASDisplayNodeAssert(start == 0, @"Called startMeasuring block twice.");
|
||||
start = CFAbsoluteTimeGetCurrent();
|
||||
start = CACurrentMediaTime();
|
||||
}, ^{
|
||||
time += (CFAbsoluteTimeGetCurrent() - start);
|
||||
time += (CACurrentMediaTime() - start);
|
||||
ASDisplayNodeAssert(calledStop == NO, @"Called stopMeasuring block twice.");
|
||||
ASDisplayNodeAssert(start != 0, @"Failed to call startMeasuring block");
|
||||
calledStop = YES;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user