     /// Measure time since last init/reset.
     /// - Parameter type: Unit of measurement. See `StopwatchMeasurementUnit`.
     /// - Returns: Measured time in desired type.
-    func measure(in type: MXStopwatchMeasurementUnit = .milliseconds) -> TimeInterval {
+    public func measure(in type: MXStopwatchMeasurementUnit = .milliseconds) -> TimeInterval {
         switch type {
         case .seconds:
             return measuredTimeInSeconds

import Foundation

/// Measurement unit for Stopwatch.
@objc enum MXStopwatchMeasurementUnit: UInt {
    case seconds
    case milliseconds
}

@objcMembers class MXStopwatch: NSObject {
    
    private var startDate: Date
    
    /// Initializer.
    override init() {
        startDate = Date()
        super.init()
    }

    }
    
    /// Reset the stopwatch.
    public func reset() {
        startDate = Date()
    }
    
