[llvm-commits] CVS: llvm/include/llvm/System/TimeValue.h
Reid Spencer
reid at x10sys.com
Tue Nov 9 12:29:21 PST 2004
Changes in directory llvm/include/llvm/System:
TimeValue.h updated: 1.6 -> 1.7
---
Log message:
Provide conversion from posix time.
---
Diffs of the changes: (+9 -0)
Index: llvm/include/llvm/System/TimeValue.h
diff -u llvm/include/llvm/System/TimeValue.h:1.6 llvm/include/llvm/System/TimeValue.h:1.7
--- llvm/include/llvm/System/TimeValue.h:1.6 Tue Oct 26 13:00:03 2004
+++ llvm/include/llvm/System/TimeValue.h Tue Nov 9 14:29:10 2004
@@ -315,6 +315,15 @@
this->normalize();
}
+ /// Converts the \p seconds argument from PosixTime to the corresponding
+ /// TimeValue and assigns that value to \p this.
+ /// @brief Convert seconds form PosixTime to TimeValue
+ void fromPosixTime( SecondsType seconds ) {
+ seconds_ = seconds + PosixZeroTime.seconds_;
+ nanos_ = 0;
+ this->normalize();
+ }
+
/// @}
/// @name Implementation
/// @{
More information about the llvm-commits
mailing list