[llvm-commits] CVS: llvm/include/llvm/System/TimeValue.h
Jeff Cohen
jeffc at jolt-lang.org
Mon Dec 13 21:26:54 PST 2004
Changes in directory llvm/include/llvm/System:
TimeValue.h updated: 1.9 -> 1.10
---
Log message:
Implement Win32 Path::getStatusInfo(), TimeValue::toString()
---
Diffs of the changes: (+8 -0)
Index: llvm/include/llvm/System/TimeValue.h
diff -u llvm/include/llvm/System/TimeValue.h:1.9 llvm/include/llvm/System/TimeValue.h:1.10
--- llvm/include/llvm/System/TimeValue.h:1.9 Tue Nov 16 00:22:17 2004
+++ llvm/include/llvm/System/TimeValue.h Mon Dec 13 23:26:43 2004
@@ -336,6 +336,14 @@
this->normalize();
}
+ /// Converts the \p win32Time argument from Windows FILETIME to the
+ /// corresponding TimeValue and assigns that value to \p this.
+ /// @brief Convert seconds form Windows FILETIME to TimeValue
+ void fromWin32Time( uint64_t win32Time ) {
+ this->seconds_ = win32Time / 10000000 + Win32ZeroTime.seconds_;
+ this->nanos_ = NanoSecondsType(win32Time % 10000000) * 100;
+ }
+
/// @}
/// @name Implementation
/// @{
More information about the llvm-commits
mailing list