www.icetips.com  Icetips Utilities Documentation 5/15/2014    

Utility Class: GetFormatted100sec

Previous  Top  Next  


Prototype: (Long pTime,<String pDelimiter>,<String pTimeFormat>),String

 

pTimeStandard Clarion Time value, such as Clock()
pDelimiterThe delimiter character(s) to use to separate the standard formatted time and the 1/100 fractions.  The default is semicolon, ':'
pTimeFormatThe time format to use, such as '@t4'  The default is @t4.

 

ReturnsReturns a string that contains both the time and the 1/100 second fraction, such as "13:58:17:45"

 

This method is useful in profiling and debugging code. 

 

Example:

 

S    Long

X    Long

ITU  ITUtilityClass

Code

S = Clock()

!! Some code here to profile

Loop 1000000 times

  X+= 1

End

Message('It took ' & ITU.GetFormatted100sec(Clock() - s) ' to finish the calculation')

 

 

See also:

GetClockFromString

GetClockValue

GetHour

GetMinute

GetUnixDateTime

 

 

 



Direct link to this page: http://www.icetips.com/manuals/utilities/getformatted100sec_utility.htm