Differences between revisions 4 and 5
Revision 4 as of 2008-02-12 15:37:21
Size: 1089
Editor: dcesarsky
Comment:
Revision 5 as of 2009-07-15 14:32:36
Size: 1089
Editor: localhost
Comment: converted to 1.6 markup
No differences found!

Msec2sec

// Purpose       : Convert [msec] into [sec]. This is needed since CUS
//                 granularity is the second and DMC delays are expressed
//                 in msec.
//
// Author CUS    : Diego A. Cesarsky (diego.cesarsky@mpe.mpg.de)
//
// Input arguments
// Type  Name      DefVal  Description
// int   milisec   N/A     A duration [msec] to be converted into [sec]
//
// Description   : Convert int msec into float sec (for instance 1230 msec
//                 gets converted to 1.230 [sec] and take next closest integer
//                 (2 in this example)
//
// Version       : 0.1 13-Aug-2004 First creation
// History       :
//               :
//
int procedure Msec2sec {
    int milisec = 0;
}{

Example:

Parameters specified for definition Msec2sec  [20001 ]
12-Feb-08 16:35:08.648 Cus:
Return value of definition Msec2sec = [21]

Parameters specified for definition Msec2sec  [200 ]
12-Feb-08 16:37:10.891 Cus:
Return value of definition Msec2sec = [1]

since the closest higher integer is computed

Herschel: PACS/CUSPVscripts/Msec2sec (last edited 2009-07-15 14:32:36 by localhost)