I need to convert an NSTimeInterval into a unique key. What is the best practice for doing this?
Thanks, Doug
I need to convert an NSTimeInterval into a unique key. What is the best practice for doing this?
Thanks, Doug
NSTimeInterval
is declared as typedef double NSTimeInterval;
, it's not an object, so you can get the same value by calling different methods.
NSTimeInterval is just a double. This means you can use any standard hash function to generate a key.