tags:

views:

152

answers:

2

I need to convert an NSTimeInterval into a unique key. What is the best practice for doing this?

Thanks, Doug

A: 

NSTimeInterval is declared as typedef double NSTimeInterval;, it's not an object, so you can get the same value by calling different methods.

pgb
A: 

NSTimeInterval is just a double. This means you can use any standard hash function to generate a key.

Dan Lorenc