EDM01-14 DAG 3.6D Card User Guide
©2005
33
Version 10: May 2006
6.2 Timestamps
, continued
Example codes
Here is some example code showing how a 64-bit ERF timestamp (erfts)
can be converted into a struct timeval representation (tv).
unsigned long long lts;
struct timeval tv;
lts = erfts;
tv.tv_sec = lts >> 32;
lts = ((lts & 0xffffffffULL) * 1000 * 1000);
lts += (lts & 0x80000000ULL) << 1; /* rounding */
tv.tv_usec = lts >> 32;
if(tv.tv_usec >= 1000000) {
tv.tv_usec -= 1000000;
tv.= 1;
}
Содержание DAG 3.6D
Страница 1: ......
Страница 5: ...EDM01 14 DAG 3 6D Card User Guide 2005 ii Version 10 May 2006...
Страница 21: ...EDM01 14 DAG 3 6D Card User Guide 2005 16 Version 10 May 2006...
Страница 22: ...EDM01 14 DAG 3 6D Card User Guide 2005 17 Version 10 May 2006...
Страница 26: ...EDM01 14 DAG 3 6D Card User Guide 2005 21 Version 10 May 2006...
Страница 34: ...EDM01 14 DAG 3 6D Card User Guide 2005 29 Version 10 May 2006...