diff --git a/JSONPreview/Other/ViewController.swift b/JSONPreview/Other/ViewController.swift index b20b152..34c0105 100644 --- a/JSONPreview/Other/ViewController.swift +++ b/JSONPreview/Other/ViewController.swift @@ -116,7 +116,15 @@ class ViewController: UIViewController { ] """ - previewView.preview(json, style: .default) + let start = Date().timeIntervalSince1970 + print("will display json") + + previewView.preview(json, style: .default) { + let end = Date().timeIntervalSince1970 + let timeConsuming = end - start + + print("did display json at: \(timeConsuming)") + } } }