iphone - Is a pointer used with a NSTimeInterval? -


do use pointer nstimeinterval though defined int?
instance use: nstimeinterval *time or nstimeinterval time

thank you!

nstimeinterval double, double-click symbol while holding cmd see typedef. use directly, can use pointer example able change value in method call:

- (void) dosomethinglongandreturnduration: (nstimeinterval*) duration {     cfabsolutetime start = cfabsolutetimegetcurrent();     …     cfabsolutetime end = cfabsolutetimegetcurrent();     *duration = end-start; } 

this weird example, idea.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -