1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
* Calculate time differences to milliseconds.

DATA LIST LIST /t1 t2 (2TIME13.3).
BEGIN DATA
12:02:45.459 12:02:47.123
12:02:45.459 12:02:46.460
12:02:45.458 12:02:45.459
END DATA.
LIST.

COMPUTE delta=t2 - t1.
FORMATS delta(F8.3) t1 t2 (TIME13.3).
LIST.

* This is the result of LIST:
           T1            T2    DELTA

 12:02:45.459  12:02:47.123    1.664
 12:02:45.459  12:02:46.460    1.001
 12:02:45.458  12:02:45.459     .001