in reply to Re: Automatically creating incremental file names
in thread Automatically creating incremental file names

That should give you a unique time (to the microsecond if you platform supports it), and should be okay until something like 2038?

That doesn't give any garantee for uniqueness when there is more than one processor in the machine. And those will be commonplace long before 2038. If you want uniqueness, don't depend on only a clock.

Abigail

  • Comment on Re: Automatically creating incremental file names

Replies are listed 'Best First'.
Re: Re: Automatically creating incremental file names
by BrowserUk (Patriarch) on May 27, 2003 at 18:34 UTC

    Agreed. In a multi-processor environments, additional steps must be taken.

    Likewise, if storing temporary file on shared media.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller