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
Post a Comment