• Stars
    star
    107
  • Rank 323,587 (Top 7 %)
  • Language
    Objective-C
  • Created over 11 years ago
  • Updated over 11 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Measure the time taken to execute a block of code… using… blocks!

MKBlockTimer

Measure the time taken to execute a block of code… using… blocks!

Usage

The method is fairly straightforward to use.

[self logTimeTakenToRunBlock:^{

// your time consuming piece of code here
for(int i = 0 ; i < 1000000000; i ++);

} withPrefix:@"For Loop"];

When you do this, you should see the following on the console.

Output

2013-04-04 22:07:08.966 MKBlockTimerDemo[69436:c07] For Loop: 1814 ms

More Repositories

1

MKNetworkKit

Modern NSURLSession based Networking Framework with built in authentication and HTTP 1.1 caching standards support for iOS 8+ devices
Objective-C
3,063
star
2

MKStoreKit

The "Goto" In App Purchases Framework for iOS 8+
Objective-C
2,090
star
3

MKiCloudSync

Sync your NSUserDefaults to iCloud automatically
Objective-C
532
star
4

UIKitCategoryAdditions

Block based Category additions for AlertView and ActionSheets
Objective-C
300
star
5

MKHorizMenuDemo

Demo of MKHorizMenu a simple, drop-in replacement for the Three20 fame horizontal menus used in news apps
Objective-C
258
star
6

MKInfoPanelDemo

Non-modal, non-intrusive Info Panel implementation as seen on some "popular" apps
Objective-C
192
star
7

LocationWithoutPrompt

A proof of concept to show how easy it is to get coarse location of the user without using Core Location
Swift
126
star
8

MKFoundation

MKFoundation is a bunch of foundation classes that you can use in your application
Objective-C
114
star
9

MKTickerViewDemo

A drop-in control for creating stock tickers in your app
Objective-C
97
star
10

MKNetworkKit-Swift

A Pure Swift Implementation of MKNetworkKit. This is the Swift Networking framework you will ever need.
Swift
88
star
11

LocalNotifications

Creating Local Notifications on iOS 4
Objective-C
82
star
12

MKEntryPanelDemo

Entry Panel UI
Objective-C
68
star
13

DeviceHelper

Helper class to identify capabilities of a iOS device
Objective-C
54
star
14

Gravatar

Objective-C Gravatar API
Objective-C
47
star
15

CurlNSMutableURLRequestDemo

Prints your NSMutableURLRequests as a equivalent curl command.
Objective-C
22
star
16

SwiftLogger

A Logging framework for Swift
Swift
18
star
17

GoldenRatioColorDemo

Generate Random Colors using the Golden Ratio
Objective-C
13
star
18

third-party-json-adapters

Third Party JSON Adapters for NSJSONSerialization in iOS 5
Objective-C
12
star
19

MKDocumentSync

Sync your Documents directory with iCloud in a single line of code. #NOT
Objective-C
7
star
20

GoldenRatioColors

Generate aesthetically random colors
Swift
4
star
21

MK-UndoCloseTab

Undo your closed tabs with this simple chrome extension
2
star
22

UITextViewAttributedStringBug

This is the sample code illustrating the Radar 15159094
Objective-C
1
star
23

mugunthkumar.github.com

Pages
1
star