fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
taia.h
Go to the documentation of this file.
1#ifndef TAIA_H
2#define TAIA_H
3
4/*
5 * Revision 20170329, Kai Peter
6 * - changed type of 'taia_now()' from void to int
7*/
8
9/* time with precision of 1 attosecond */
10
11#include "tai.h"
12
13struct taia {
14 struct tai sec;
15 unsigned long nano; /* 0...999999999 */
16 unsigned long atto; /* 0...999999999 */
17} ;
18
19extern void taia_tai(struct taia *,struct tai *);
20
21extern int taia_now(struct taia *);
22
23extern double taia_approx(struct taia *);
24extern double taia_frac(struct taia *);
25
26extern void taia_add(struct taia *,struct taia *,struct taia *);
27extern void taia_sub(struct taia *,struct taia *,struct taia *);
28extern void taia_half(struct taia *,struct taia *);
29extern int taia_less(struct taia *,struct taia *);
30
31#define TAIA_PACK 16
32extern void taia_pack(char *,struct taia *);
33extern void taia_unpack(char *,struct taia *);
34
35#define TAIA_FMTFRAC 19
36extern unsigned int taia_fmtfrac(char *,struct taia *);
37
38extern void taia_uint(struct taia *,unsigned int);
39
40#endif
double taia_frac(struct taia *)
Definition: taia.c:34
unsigned int taia_fmtfrac(char *, struct taia *)
void taia_sub(struct taia *, struct taia *, struct taia *)
Definition: taia.c:81
void taia_unpack(char *, struct taia *)
void taia_pack(char *, struct taia *)
Definition: taia.c:62
int taia_less(struct taia *, struct taia *)
Definition: taia.c:39
void taia_add(struct taia *, struct taia *, struct taia *)
Definition: taia.c:14
void taia_uint(struct taia *, unsigned int)
Definition: taia.c:99
double taia_approx(struct taia *)
Definition: taia.c:29
void taia_tai(struct taia *, struct tai *)
void taia_half(struct taia *, struct taia *)
int taia_now(struct taia *)
Definition: taia.c:48
Definition: tai.h:30
Definition: taia.h:13
struct tai sec
Definition: taia.h:14
unsigned long atto
Definition: taia.h:16
unsigned long nano
Definition: taia.h:15