summaryrefslogtreecommitdiffhomepage
path: root/ir/lpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2012-10-14 22:06:03 +0200
committerMatthias Braun <matze@braunis.de>2012-10-24 14:04:09 +0200
commitae3048300979b15448eb3c52c7b5271c8203e4d3 (patch)
treed25d641915db38654fb4b966de7cdb2052cffc27 /ir/lpp
parent83e6c267e052f2ca4392e1267f2382baaf7083c5 (diff)
rework timer API
Diffstat (limited to 'ir/lpp')
-rw-r--r--ir/lpp/lpp_net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/lpp/lpp_net.c b/ir/lpp/lpp_net.c
index 7ef7285..6af2636 100644
--- a/ir/lpp/lpp_net.c
+++ b/ir/lpp/lpp_net.c
@@ -196,12 +196,12 @@ void lpp_solve_net(lpp_t *lpp, const char *host, const char *solver)
t_send = ir_timer_new();
t_recv = ir_timer_new();
- ir_timer_push(t_send);
+ ir_timer_start(t_send);
lpp_writel(comm, LPP_CMD_PROBLEM);
lpp_serialize(comm, lpp, 1);
lpp_serialize_values(comm, lpp, lpp_value_start);
lpp_flush(comm);
- ir_timer_pop();
+ ir_timer_stop(t_send);
lpp->send_time = ir_timer_elapsed_usec(t_send);
ready = 0;
@@ -212,7 +212,7 @@ void lpp_solve_net(lpp_t *lpp, const char *host, const char *solver)
ir_timer_push(t_recv);
lpp_deserialize_stats(comm, lpp);
lpp_deserialize_values(comm, lpp, lpp_value_solution);
- ir_timer_pop();
+ ir_timer_stop(t_recv);
lpp->recv_time = ir_timer_elapsed_usec(t_recv);
ready = 1;
break;