Home > matlab > parallel > CreateTimeString.m

CreateTimeString

PURPOSE ^

PARALLEL CONTEXT

SYNOPSIS ^

function [TiSt] = CreateTimeString()

DESCRIPTION ^

 PARALLEL CONTEXT
 In a parallel context, this is a specialized version of clock() function.

 INPUTS
 None

  OUTPUTS
  o TiSt    []   ...  

 Copyright (C) 2009-2010 Dynare Team

 This file is part of Dynare.

 Dynare is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.

 Dynare is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with Dynare.  If not, see <http://www.gnu.org/licenses/>.

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [TiSt] = CreateTimeString()
0002 % PARALLEL CONTEXT
0003 % In a parallel context, this is a specialized version of clock() function.
0004 %
0005 % INPUTS
0006 % None
0007 %
0008 %  OUTPUTS
0009 %  o TiSt    []   ...
0010 %
0011 % Copyright (C) 2009-2010 Dynare Team
0012 %
0013 % This file is part of Dynare.
0014 %
0015 % Dynare is free software: you can redistribute it and/or modify
0016 % it under the terms of the GNU General Public License as published by
0017 % the Free Software Foundation, either version 3 of the License, or
0018 % (at your option) any later version.
0019 %
0020 % Dynare is distributed in the hope that it will be useful,
0021 % but WITHOUT ANY WARRANTY; without even the implied warranty of
0022 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0023 % GNU General Public License for more details.
0024 %
0025 % You should have received a copy of the GNU General Public License
0026 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
0027 
0028 
0029 
0030 TiSt=[];
0031 T=fix(clock);
0032 
0033 
0034 S1=num2str(T(1));
0035 S2=num2str(T(2));
0036 S3=num2str(T(3));
0037 S4=num2str(T(4));
0038 S5=num2str(T(5));
0039 S6=num2str(T(6));
0040 
0041 
0042 TiSt=[S1 '-' S2 '-' S3 '-' S4 'h' S5 'm' S6 's'];

Generated on Tue 22-May-2012 02:40:23 by m2html © 2005