#177306 - Yogie.de - Tue Apr 03, 2012 9:19 pm
Hi,
I'm a starter, so please don't shout at me ;-)
I have a value that contains milliseconds and I would like to display these milliseconds into a readable time format on the screen...
ExposureTime is in Milliseconds...
So far I have this:
I'm too stupid to find out how I could reach that I get days, hours and milliseconds to be displayed in the format like above...?!
Anyone to help me please?
Many thanks
Yogie
I'm a starter, so please don't shout at me ;-)
I have a value that contains milliseconds and I would like to display these milliseconds into a readable time format on the screen...
ExposureTime is in Milliseconds...
So far I have this:
Code: |
TimeEstimate = ExposureTime; TimeEstimateDays= TimeEstimateHours= TimeEstimateMinutes=(TimeEstimate/1000)/60; TimeEstimateSeconds=(TimeEstimate/1000)-(TimeEstimateMinutes*60); TimeEstimateMilliseconds= // minutes dummy=TimeEstimateMinutes-(int(TimeEstimateMinutes/10)*10); PA_OutputText (1,18,5,"%d:",dummy); dummy=int((TimeEstimateMinutes-dummy)/10); PA_OutputText (1,17,5,"%d",dummy); // seconds dummy=TimeEstimateSeconds-(int(TimeEstimateSeconds/10)*10); PA_OutputText (1,21,5,"%d",dummy); dummy=int((TimeEstimateSeconds-dummy)/10); PA_OutputText (1,20,5,"%d",dummy); |
I'm too stupid to find out how I could reach that I get days, hours and milliseconds to be displayed in the format like above...?!
Anyone to help me please?
Many thanks
Yogie