summaryrefslogtreecommitdiff
path: root/include/llvm/System
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2004-12-14 05:26:43 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2004-12-14 05:26:43 +0000
commit626e38e4813c357bd7161782286317ee42357313 (patch)
tree78122159c94261ffe847983610c084e729f98773 /include/llvm/System
parent6da1e0d50fabbe3ab9e68d9640cc1ed2fd44ae6e (diff)
downloadllvm-626e38e4813c357bd7161782286317ee42357313.tar.gz
llvm-626e38e4813c357bd7161782286317ee42357313.tar.bz2
llvm-626e38e4813c357bd7161782286317ee42357313.tar.xz
Implement Win32 Path::getStatusInfo(), TimeValue::toString()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/System')
-rw-r--r--include/llvm/System/TimeValue.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/TimeValue.h b/include/llvm/System/TimeValue.h
index 93afca9f4b..e8a8365c4e 100644
--- a/include/llvm/System/TimeValue.h
+++ b/include/llvm/System/TimeValue.h
@@ -336,6 +336,14 @@ namespace sys {
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
/// @{