Back to the main page.

Bug 659 - add tic/toc to all functions and include in output cfg

Status CLOSED FIXED
Reported 2011-05-12 15:21:00 +0200
Modified 2011-07-05 15:12:34 +0200
Product: FieldTrip
Component: core
Version: unspecified
Hardware: PC
Operating System: Mac OS
Importance: P1 normal
Assigned to: Eelke Spaak
URL:
Tags:
Depends on:
Blocks:
See also:

Robert Oostenveld - 2011-05-12 15:21:12 +0200

...just like cfg.version.matlab etcetera we could also add the date and time (and username?) at which the analysis was done


Eelke Spaak - 2011-05-20 14:47:44 +0200

There is now a cfg.callinfo field in all core functions' output cfg: ans = proctime: 1.9192 % processing time, in seconds calltime: [2011 5 20 14 46 53.9020] % date and time of function call user: 'eelspa' % logged in user


Robert Oostenveld - 2011-05-26 17:00:02 +0200

>> mri.cfg.callinfo ans = proctime: 125.8952 calltime: [2011 5 26 16 4 31.1090] user: 'hcpuser' >> mri.cfg.version ans = name: 'C:\Program Files\MATLAB\R2010a\toolbox\fieldtrip-20110524\ft_volumerealign' id: '$Id: ft_volumerealign.m 3568 2011-05-20 12:45:28Z eelspa $' matlab: '7.10.0.499 (R2010a)' how about moving matlab from version to callinfo?


Arjen Stolk - 2011-05-27 16:56:25 +0200

Nice idea. Where are ftFuncTimer and ftFuncClock located? I got an error in ft_conjunctionanalysis not being able to find it. Perhaps this holds true for other functions as well?


Eelke Spaak - 2011-06-16 16:04:31 +0200

(In reply to comment #3) > Nice idea. > > Where are ftFuncTimer and ftFuncClock located? I got an error in > ft_conjunctionanalysis not being able to find it. Perhaps this holds true for > other functions as well? They are initialised at the start of the function: % record start time and total processing time ftFuncTimer = tic(); ftFuncClock = clock(); apparently I missed one occurrence in my grepping, but Robert caught the bug and fixed it :) (In reply to comment #2) > how about moving matlab from version to callinfo? Done.