1 iusbtrace2::gototime, Iusbtrace2::gototime – Teledyne LeCroy USB Analyzer Automation Manual User Manual
Page 61

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
61
3.2.1 IUsbTrace2::GotoTime
HRESULT GotoTime ( [in] double time );
Instructs the trace view to jump to the specified timestamp.
Parameters
time
Time (in nanoseconds) to jump
Example
WSH:
Set Analyzer = WScript.CreateObject("CATC.UsbTracer")
CurrentDir = Left(WScript.ScriptFullName, InstrRev(WScript.ScriptFullName, "\"))
Analyzer.StartRecording (CurrentDir & "test_ro.rec")
'... Do something.
Set Trace = Analyzer.StopRecordingAndWaitForTrace
Trace.GotoTime( 1000000 ) ' Go to 1 millisecond timestamp.
C++:
IUsbTrace2* Usb_trace;
. . .
try
{
double t = 1000000.0;
Usb_trace ->GotoTime( t );
}
catch (_com_error& er)
{
if (er.Description().length() > 0)
::MessageBox( NULL, er.Description(), _T("UsbAnalyzer client"), MB_OK );
else
::MessageBox( NULL, er.ErrorMessage(), _T("UsbAnalyzer client"), MB_OK );
return 1;
}