Teledyne-lecroy SAS_SATA Protocol Suite Verification Script Engine Instrukcja Użytkownika Strona 54

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 97
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 53
54
Chapter 12: Time Calculation Functions
This group of functions covers VSE capability to work with "time" VSE time objects.
12.1 AddTime()
Adds two VSE time objects.
Format : AddTime(time1, time2)
Return values
Returns VSE time object representing the time interval equal to the sum of time_1 and time_2.
Parameters
time_1 VSE time object representing the first time interval
time_2 VSE time object representing the second time interval
Example
t1 = Time(100); # 100 nanoseconds
t2 = Time(2, 200); # 2 seconds 200 nanoseconds
t3 = AddTime( t1, t2 ) # Returns T1 + t2 = 2 sec 300 ns.
12.2 SubtractTime()
Subtracts two VSE time objects.
Format : SubtractTime (time1, time2)
Return values
Returns VSE time object representing the time interval equal to the difference between time_1
and time_2.
Parameters
time_1 VSE time object representing the first time interval
time_2 VSE time object representing the second time interval
Example
t1 = Time(100); # 100 nanoseconds
t2 = Time(2, 200); # 2 seconds 200 nanoseconds
t3 = SubtractTime ( t2, t1 ) # Returns t2 - t1 = 2 sec 100 ns.
Przeglądanie stron 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 96 97

Komentarze do niniejszej Instrukcji

Brak uwag