Boost logo

Boost Users :

Subject: Re: [Boost-users] basic functions
From: KSpam (keesling_spam_at_[hidden])
Date: 2008-12-02 19:28:13


> 1. sleep function;

Check out the Boost.Thread library. You can use the static function
boost::thread::sleep to tell the current thread to sleep.

http://www.boost.org/doc/libs/1_37_0/doc/html/thread/thread_management.html#thread.thread_manage

> 2. get current working directory;

Check out the Boost.Filesystem library. Specifically, you probably want to
look at boost::filesystem::initial_path or boost::filesystem::current_path.

http://www.boost.org/doc/libs/1_37_0/libs/filesystem/doc/reference.html#Attribute-functions

> 3. get current system time;

Check out the Boost.Date_Time library. You can construct a
boost::posix_time::ptime object from
boost::posix_time::second_clock::local_time

http://www.boost.org/doc/libs/1_37_0/doc/html/date_time/posix_time.html#ptime_from_clock

> 4. get file separator or directory separator;

Check out the Boost.Filesystem library. You can use boost::filesystem::path
and many related utility functions to portably compose and decompose paths.
Additionally, you can retrieve the path string in a portable or
system-specific format.

http://www.boost.org/doc/libs/1_37_0/libs/filesystem/doc/index.htm

Hope This Helps,
Justin


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net