ISpeechRecoResultTimes TickCount Property

Microsoft Speech SDK

Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechRecoResultTimes

TickCount Property

The TickCount property returns the elapsed time from the start of the system to the start of the current result.

It is specified in millisecond units. The TickCount returns zero if the wave file input is used.


Syntax

Set: (This property is read-only)
Get: Long = ISpeechRecoResultTimes.TickCount

Parts

ISpeechRecoResultTimes
The owning object.
Long
Set: (This property is read-only)
Get: A Variant type containing the elapsed time

Example

When a recognition occurs with RecoResult, the TickCount can be extracted to determine the absolute time for the computer system. It is more accurate than retrieving the clock values.

The first example retrieves the recognition tick count using the TickCount property.

Dim myTimes As ISpeechRecoResultTimes
Set myTimes = RecoResult.Times
    
Dim tickCount As Variant
tickCount = myTimes.TickCount

The second example retrieves the recognition tick count by directly accessing the RecoResult structure.

Dim tickCount As Variant
tickCount = RecoResult.Times.TickCount