Skip to content

Instantly share code, notes, and snippets.

@anvarazizov
anvarazizov / printTime.swift
Created October 13, 2017 01:03
print time in swift with milliseconds
func printDate(string: String) {
let date = Date()
let formatter = DateFormatter()
formatter.dateFormat = "HH:mm:ss.SSSS"
print(string + formatter.string(from: date))
}
//
// GSSimpleImageView.swift
// GSSimpleImage
//
// Created by 胡秋实 on 16/1/2016.
// Copyright © 2016 CocoaPods. All rights reserved.
//
import UIKit