Re: time() not returning Integer
- Posted by Derek Parnell <ddparnell at bigpond.com> Jun 29, 2007
- 558 views
Tristen Wilson wrote: > > If I set a variable such as a = time() and set a as an integer it returns > a type check error. The time() function returns an atom and not an integer. In other words, its value can be fractions of a second. It does not return the Time Of Day. It is used for finding elapsed time. atom Start atom Stop Start = time() DoSomething() Stop = time() printf(1, "Duration=%f", Stop - Start) > By using printf(fn, "%f", a) I was able to get it to > return even decimals. It just won't return an odd number Show us what you mean by giving examples that you actually used and their results. -- Derek Parnell Melbourne, Australia Skype name: derek.j.parnell