mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Use CACurrentMediaTime for performance benchmarks (#2185)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user