Skip to content

Commit e771053

Browse files
committed
Add millisecond helper: 100.ms
1 parent c48e142 commit e771053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Src/SwiftyTimer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ extension NSTimer {
9090
}
9191

9292
extension Double {
93+
public var ms: NSTimeInterval { return self / 1000 }
9394
public var second: NSTimeInterval { return self }
9495
public var seconds: NSTimeInterval { return self }
9596
public var minute: NSTimeInterval { return self * 60 }

0 commit comments

Comments
 (0)