                 }
                 dispatch_semaphore_signal(semaphore)
                 while !stop {
-                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as NSDate)
+                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as! NSDate)
                 }
                 realm.removeNotification(token)
             }

                }
                dispatch_semaphore_signal(semaphore)
                while object.intCol < stopValue {
                    NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as NSDate)
                }
                realm.removeNotification(token)
            }

            self.startMeasuring()
            realm.write { _ = object.intCol++ }
            while object.intCol < stopValue {
                NSRunLoop.currentRunLoop().runMode(NSDefaultRunLoopMode, beforeDate: NSDate.distantFuture() as! NSDate)
            }
            dispatch_sync(queue) {}
            self.stopMeasuring()
