2012-04-05 11 views
0

Gibt es ein Äquivalent zu: Microseconds() finden wir im Carbon-Framework?Mikrosekunden-Timer mit Carbon-Framework

 
** Microseconds() 
* 
* Summary: 
* Determines the number of microseconds that have elapsed since 
* system startup time. 
* 
* Discussion: 
* Return a value representing the number of microseconds since some 
* point in time, usually since the system was booted. One 
* microsecond is 1 * 10^-6 seconds, and so there are one million (
* 1,000,000) microseconds per second. For reference, in one 
* microsecond light can travel about 850 feet in a vacuum. 
*  
* Microseconds() doesn't necessarily advance while the computer is 
* asleep, so it should not be used for long duration timings. 
* 
* Parameters: 
*  
* microTickCount: 
*  The number of microseconds elapsed since system startup. 
* 
* Availability: 
* Mac OS X:   in version 10.0 and later in CoreServices.framework 
* CarbonLib:  in CarbonLib 1.0 and later 
* Non-Carbon CFM: in InterfaceLib 7.1 and later* 
+2

Warum brauchen Sie ein Äquivalent? Es befindet sich nicht in Carbon.framework, sondern in CarbonCore.framework, das sich in CoreServices.framework befindet und nicht veraltet ist. – JWWalker

+1

Da Sie C++ verwenden, sollten Sie die Standardbibliothek anstelle von Carbon verwenden. Suchen Sie nach Informationen zur Bibliothek "". – bames53

Antwort

0

Microseconds ist ein Core Service, und es ist immer von Kohlenstoff zugänglich. (Carbon sitzt auf Core Services).

Es stammt auch aus dem klassischen Mac OS.