www.gusucode.com > mbcguitools 工具箱 matlab 源码程序 > mbcguitools/@xregGui/getUITimer.m

    function hTimer = getUITimer
%GETUITIMER Return the shared timer used by MBC UI objects
%
%  HTIMER = GETUITIMER returns a shared timer object that all MBC UI
%  objects use for scheduling tasks.

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.


persistent hT

if isempty(hT) || ~ishandle(hT)
    hT = mbcfoundation.timer;
end
hTimer = hT;