www.pudn.com > truetime-1.2-compiled.zip > interfcode.m


function [exectime, data] = interfcode(seg, data)

BWshare = 0.0; % Fraction of the network bandwidth occupied by this node
if (rand(1) < BWshare) 
  ttSendMsg(1, 1, 10);  % send 10 bytes to myself
end
exectime = -1;