Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > threads and getlocaltime

Reply
Thread Tools

threads and getlocaltime

 
 
Charlie
Guest
Posts: n/a
 
      07-02-2004
Hi folks,

In one of my perl code, I am trying to get the local time in mseconds.
The module I am using are from CPAN, Time::Format. It works fine in
the regular code, but if I create some threads inside the code and
have the $time() being called in the threads, it causes the segment
fault.

So the question I have is does anyone know other api that I can use,
which give me the local time in mseconds and is thread safe ?


regards,


Charlie.
 
Reply With Quote
 
 
 
 
Gunnar Hjalmarsson
Guest
Posts: n/a
 
      07-03-2004
Charlie wrote:
> So the question I have is does anyone know other api that I can
> use, which give me the local time in mseconds and is thread safe ?


Have you tried Time::HiRes?

--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[new to threads] threads with UI and loop Une bévue Ruby 0 06-14-2006 10:22 AM
TB View, Threads, Threads with unread The Invisible Man Firefox 1 03-20-2006 02:09 AM
Standard Threads vs Weightless Threads yoda Python 2 08-01-2005 09:12 PM
threads without threads sindica@gmail.com C Programming 4 08-27-2004 09:25 PM
GetLocalTime() for Linux/Unix Ever Olano C Programming 2 06-30-2004 09:42 PM



Advertisments