Hi, I use sim_time() in different place and I calculate subtract of value! but strange result print out! all variable are uint16_t! st=sim_time(); //at first et= sim_time(); // at end
diff=(int)et-(int)st; output is: st is 28307 et is 28407 diff is 65436 why the result value is incorrect!
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help