but the result is not what I wanted. for instance I obtain this:
5.435943603515625000e-05
-5.722045898437500000e-06
-1.025199890136718750e-05
-6.914138793945312500e-06
3.814697265625000000e-05
-4.291534423828125000e-06
1.192092895507812500e-06
-2.145767211914062500e-06
I need to subtract the first timestamp of the list with the first timestamp of the second list.
Your problem is the accuracy to which the numbers are held. An IEEE 64-bit value is only accurate to 15 or 16 digits. As most of your pairs of values are identical in the first 14 digits, you can only get one or two correct digits in the result of the subtraction.
Obviously, these are Epoch-based seconds and nanoseconds, to 19-digit accuracy. I would separate off the first six digits of each value text, deal with the few that have a roll-over in the 10,000 seconds digit, discard the decimal point, do the arithmetic as integer, and label the result as nanoseconds.