ThingWorx C SDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
thirdParty
libcfu
src
cfutimer.h
1
/*
2
* cfutimer.h - This file is part of the libcfu library
3
*
4
* Copyright (c) Matthew Brush <mbrush@codebrainz.ca>.
5
* All rights reserved.
6
*
7
* This code is released under the BSD license, see COPYING file
8
* for full license text.
9
*/
10
11
#ifndef CFU_TIMER_H_
12
#define CFU_TIMER_H_
13
14
#include <cfu.h>
15
16
CFU_BEGIN_DECLS
17
18
typedef
struct
cfutimer
cfutimer_t;
19
20
/* Return a new cfutimer structure. */
21
cfutimer_t *cfutimer_new(
void
);
22
23
/* Start the timer. */
24
void
cfutimer_start(cfutimer_t *timer);
25
26
/* Stop the timer. */
27
void
cfutimer_stop(cfutimer_t *timer);
28
29
/* Return the number of seconds elapsed as a double. */
30
double
cfutimer_elapsed(cfutimer_t *timer);
31
32
/* Deallocate resources allocated for time. */
33
void
cfutimer_free(cfutimer_t *timer);
34
35
CFU_END_DECLS
36
37
#endif
/* CFU_TIMER_H_ */
cfutimer
Definition:
cfutimer.c:68
Generated on Wed Feb 27 2019 14:44:39 for ThingWorx C SDK by
1.8.9.1