Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Timing an activity



Everett Sanmann (email@hidden) on Mon, Jul 26, 2004 22:18 said:

>AbsoluteTime delta = stop - start;
>
>double seconds = AbsoluteToNanoSeconds(delta) * 0.000000001f;
>
>[END]
>
>However, I found that "AbsoluteToNanoSeconds"-rather than returning a
>double, returns a UnsignedWide struct, consisting of UInt32 hi and UInt32
>lo. (Also, since Absolute time is the same struct, the compiler complains
>that stop and start and not valid variables) -(I did attempt to read the
>headers).

Sound like AbsoluteDeltaToNanoseconds() would work well for you.
_______________________________________________
carbon-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/carbon-development
Do not post admin requests to the list. They will be ignored.


References: 
 >Timing an activity (From: Everett Sanmann <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.