projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
one more
[cparser]
/
driver
/
firm_timing.c
diff --git
a/driver/firm_timing.c
b/driver/firm_timing.c
index
24994da
..
82a59be
100644
(file)
--- a/
driver/firm_timing.c
+++ b/
driver/firm_timing.c
@@
-5,7
+5,7
@@
*
* $Id$
*/
*
* $Id$
*/
-#include <lib
core/lc_
timing.h>
+#include <lib
firm/
timing.h>
#include "firm_timing.h"
static const char *tv_names[] = {
#include "firm_timing.h"
static const char *tv_names[] = {
@@
-22,14
+22,14
@@
static const char *tv_desc[] = {
#undef DEFTIMEVAR
};
#undef DEFTIMEVAR
};
-static
lc
_timer_t *timers[TV_LAST];
+static
ir
_timer_t *timers[TV_LAST];
static int timers_inited;
void timer_init(void) {
int i;
for (i = 0; i < TV_LAST; ++i) {
static int timers_inited;
void timer_init(void) {
int i;
for (i = 0; i < TV_LAST; ++i) {
- timers[i] =
lc
_timer_register(tv_names[i], tv_desc[i]);
+ timers[i] =
ir
_timer_register(tv_names[i], tv_desc[i]);
}
timers_inited = 1;
}
timers_inited = 1;
@@
-39,8
+39,8
@@
void timer_term(FILE *f) {
int i;
for (i = 0; i < TV_LAST; ++i) {
int i;
for (i = 0; i < TV_LAST; ++i) {
-
unsigned long val = lc_timer_elapsed_msec(timers[i])
;
- fprintf(f, "%-30s %8
lu
\n", tv_desc[i], val);
+
double val = (double)ir_timer_elapsed_usec(timers[i]) / 1000.0
;
+ fprintf(f, "%-30s %8
.3f msec
\n", tv_desc[i], val);
}
timers_inited = 0;
}
timers_inited = 0;
@@
-48,20
+48,20
@@
void timer_term(FILE *f) {
void timer_push(int timer) {
if (timers_inited)
void timer_push(int timer) {
if (timers_inited)
-
lc
_timer_push(timers[timer]);
+
ir
_timer_push(timers[timer]);
}
void timer_pop(void) {
if (timers_inited)
}
void timer_pop(void) {
if (timers_inited)
-
lc
_timer_pop();
+
ir
_timer_pop();
}
void timer_start(int timer) {
if (timers_inited)
}
void timer_start(int timer) {
if (timers_inited)
-
lc
_timer_start(timers[timer]);
+
ir
_timer_start(timers[timer]);
}
void timer_stop(int timer) {
if (timers_inited)
}
void timer_stop(int timer) {
if (timers_inited)
-
lc
_timer_stop(timers[timer]);
+
ir
_timer_stop(timers[timer]);
}
}