|more useful options|
Time in Milliseconds or NanoSecondsby ramya2005 (Scribe)
|on Aug 11, 2005 at 23:43 UTC||Need Help??|
ramya2005 has asked for the
wisdom of the Perl Monks concerning the following question:
I do not want to create a temporary file.
I will give a more specific requirement.
I have to take a value from the XML file and change it into a unique text.
So what I am doing is appending the original text with process ID and Timestamp as I mentioned before.
If using timestamp is not appropriate please suggest me a more reliable solution.
------ From Prev Thread -----------------------------------
I have to create unique file names in a multiuser environment. So I am doing usertext_processID_TimeStamp to create unique file names. The following code is giving me the timestamp is seconds.
There are instances where two names are created in the same second and they are alike.
Is there a perlish way of getting time in nano seconds or milli seconds (or) I have to convert seconds to milliseconds manually?
Also let me know if there is a better way of creating unique names.