Skip to content

Commit 6b975c1

Browse files
committed
Set time of Timer and fix signal name in Timer.
1 parent 12fedc6 commit 6b975c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/sot/core/timer.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Timer_EXPORT Timer
110110
sotDEBUG(15) << "t1: "<< t1.tv_sec << " - " << t1.tv_usec << std::endl;
111111

112112
timerSOUT = dt;
113+
timerSOUT.setTime (time);
113114

114115
sotDEBUGOUT(15);
115116
return t;
@@ -147,7 +148,7 @@ Timer( const std::string& name )
147148
:Entity(name)
148149
,t0(),t1()
149150
,dt(0.)
150-
,sigSIN( NULL,"Timer("+name+")::output(T)::sin" )
151+
,sigSIN( NULL,"Timer("+name+")::input(T)::sin" )
151152
,sigSOUT( boost::bind(&Timer::compute,this,_1,_2),
152153
sigSIN,
153154
"Timer("+name+")::output(T)::sout" )

0 commit comments

Comments
 (0)