From 2c12f2ed5fc4e9a12218c79995cdfd35d5a428e9 Mon Sep 17 00:00:00 2001 From: Rakuyo Date: Thu, 7 Apr 2022 13:25:43 +0800 Subject: [PATCH] update test --- JSONPreview/Other/ViewController.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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)") + } } }