diff options
author | Jose <jose@zeroc.com> | 2016-04-07 10:29:11 +0200 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2016-04-07 10:29:11 +0200 |
commit | 058a0c6c3ee2f059be0d8c7eba940aa31463fa7f (patch) | |
tree | a52b7eb37253b8da13db2b7f617f3233b440bbfb /cpp/include | |
parent | Fixed issue with IE where accessing the stack from Exception.toString leads t... (diff) | |
download | ice-058a0c6c3ee2f059be0d8c7eba940aa31463fa7f.tar.bz2 ice-058a0c6c3ee2f059be0d8c7eba940aa31463fa7f.tar.xz ice-058a0c6c3ee2f059be0d8c7eba940aa31463fa7f.zip |
ICE-7035 - Add option to roll log files
Diffstat (limited to 'cpp/include')
-rw-r--r-- | cpp/include/IceUtil/Time.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/include/IceUtil/Time.h b/cpp/include/IceUtil/Time.h index abfc48c7854..9b29a862391 100644 --- a/cpp/include/IceUtil/Time.h +++ b/cpp/include/IceUtil/Time.h @@ -28,7 +28,7 @@ public: // No copy constructor and assignment operator necessary. The // automatically generated copy constructor and assignment // operator do the right thing. - + enum Clock { Realtime, Monotonic }; static Time now(Clock = Realtime); @@ -39,7 +39,7 @@ public: static Time secondsDouble(double); static Time milliSecondsDouble(double); static Time microSecondsDouble(double); - + #ifndef _WIN32 operator timeval() const; #endif @@ -54,6 +54,7 @@ public: std::string toDateTime() const; std::string toDuration() const; + std::string toFormatString(const std::string&) const; Time operator-() const { |