Repository navigation
Commit 724d9db
committed
COSYLAB-8 Added support for per-record timestamping, currently the timestamp is packed into unsigned 64bit int. To retreive the timestamp in python client the following snippet can be used:
##Note that the timestamp needs to be received as two unsigned 32 bit integers
## instead of a single 64bit int. This due to the fact the rshift on 64bit int doesn't
## work on numpy [numpy/numpy#2524]
raw_data=socket.recv()
value = numpy.fromstring(raw_data, dtype='u4')
secPastEpich = value[1]
nsec = value[0]1 parent 7c9b0a2 commit 724d9db
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
197 | 214 | | |
198 | 215 | | |
199 | 216 | | |
| |||
0 commit comments