Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
rakuyoMo committed Apr 7, 2022
1 parent a5b23b0 commit 2c12f2e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion JSONPreview/Other/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)")
}
}
}

Expand Down

0 comments on commit 2c12f2e

Please sign in to comment.