Cancel
Showing results for 
Search instead for 
Did you mean: 

Return time in method in days

Creator
Creator

Hi,

 

I wrote a method which returns the processing time of a parallelproc. This method returns a time which is recognized as seconds. However, I need this time to be recognized as days rather than seconds. 

Does anyone know how to do this?

 

Regards,

Noud

my method:

 

:time
is
n: integer;
output: time;
do

n:=?.counter;
output :=100*pow(n,-0.15);

n:= ?.counter + 1;
?.counter := n;

return output;

end;

 

2 REPLIES

Betreff: Return time in method in days

Siemens Phenom Siemens Phenom
Siemens Phenom

Hello Noud,

 

just devide your result by 86400 (24*60*60) and you will get your resut lin days.

Hope this helps.

Regards
GG

------------------------------------------------------------------------------------------------------
Did you like the answer? Then click the Thumbs Up button.
Did the answer solve your problem? Then accept the answer as solution

Betreff: Return time in method in days

Creator
Creator

How stupid of me... Thanks!