mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-11-08 13:41:59 +01:00
26 lines
347 B
C
26 lines
347 B
C
|
/*
|
||
|
* tai.h, SJ
|
||
|
*/
|
||
|
|
||
|
#define TAI_PACK 8
|
||
|
#define TAIA_PACK 16
|
||
|
#define TIMESTAMP 25
|
||
|
|
||
|
typedef unsigned long long uint64;
|
||
|
|
||
|
struct tai {
|
||
|
uint64 x;
|
||
|
};
|
||
|
|
||
|
struct taia {
|
||
|
struct tai sec;
|
||
|
unsigned long nano; /* 0...999999999 */
|
||
|
unsigned long atto; /* 0...999999999 */
|
||
|
};
|
||
|
|
||
|
|
||
|
void taia_now(struct taia *t);
|
||
|
void taia_pack(char *s, struct taia *t);
|
||
|
|
||
|
|