BRL-CAD
time.h
Go to the documentation of this file.
1 /* T I M E . H
2  * BRL-CAD
3  *
4  * Copyright (c) 2004-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 
21 /** @file time.h
22  *
23  */
24 #ifndef BU_TIME_H
25 #define BU_TIME_H
26 
27 #include "common.h"
28 
29 #include <stdio.h> /* For FILE */
30 #include <sys/types.h> /* for off_t */
31 #include <stddef.h> /* for size_t */
32 #include <stdlib.h> /* for getenv */
33 
34 #include "bu/defines.h"
35 #include "bu/vls.h"
36 
38 
39 /** @addtogroup bu_time */
40 /** @{ */
41 
42 /** @file libbu/timer.c
43  * Return microsecond accuracy time information.
44  */
45 BU_EXPORT extern int64_t bu_gettime(void);
46 
47 
48 /** @file libbu/date-time.c
49  * A libbu version of utctime.
50  */
51 /**
52  * Evaluate the time_t input as UTC time in ISO format.
53  *
54  * The UTC time is written into the user-provided bu_vls struct and is
55  * also returned and guaranteed to be a non-null result, returning a
56  * static "NULL" UTC time if an error is encountered.
57  */
58 BU_EXPORT void bu_utctime(struct bu_vls *utc_result, const int64_t time_val);
59 
60 /** @} */
61 
63 
64 #endif /* BU_TIME_H */
65 
66 /*
67  * Local Variables:
68  * mode: C
69  * tab-width: 8
70  * indent-tabs-mode: t
71  * c-file-style: "stroustrup"
72  * End:
73  * ex: shiftwidth=4 tabstop=8
74  */
Header file for the BRL-CAD common definitions.
#define __BEGIN_DECLS
Definition: common.h:73
void bu_utctime(struct bu_vls *utc_result, const int64_t time_val)
Definition: date-time.c:33
int64_t bu_gettime(void)
Definition: timer.c:42
#define __END_DECLS
Definition: common.h:74
Definition: vls.h:56