timedir = 'gbinfiles/time'
files = dirs(fullfile(timedir, '*.tim.gbin'));

alltimes = [];


for filei = 1:length(files)
   timdata = read_bin(fullfile(timedir, files(filei).name));
   alltimes = [alltimes timdata];
end


clf
plot(diff(alltimes(1,:)));