Fun Project: xTalk GUID Generator
dick.kriesel at mail.com
Fri Dec 1 14:34:35 EST 2006
On 12/1/06 10:46 AM, "Ken Ray" <kray at sonsothunder.com> wrote:
> On 12/1/06 11:35 AM, "Bill Marriott" <wjm at wjm.org> wrote:
>> And Rev's "the milliseconds" returns the total number of milliseconds since
>> the "start of the eon" -- which is midnight GMT, January 1, 1970. Ticks is
>> the same, but returns 1/60th of a second. I don't think we have a way of
>> accessing nanoseconds (billionth of a second).
> No, the closest we have is microseconds (a millionth of a second), by using
> the "long seconds" function. But keep in mind the note attached to it: "this
> value is not normally accurate past the third decimal place because of
> processor delays".
Since no one will be converting GUIDs back to seconds, accuracy doesn't
matter for this purpose, right?
So functions "long seconds" and "random" can be used to fake nanoseconds.
More information about the Use-livecode