diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-14 05:26:43 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2004-12-14 05:26:43 +0000 |
commit | 626e38e4813c357bd7161782286317ee42357313 (patch) | |
tree | 78122159c94261ffe847983610c084e729f98773 /include | |
parent | 6da1e0d50fabbe3ab9e68d9640cc1ed2fd44ae6e (diff) | |
download | external_llvm-626e38e4813c357bd7161782286317ee42357313.zip external_llvm-626e38e4813c357bd7161782286317ee42357313.tar.gz external_llvm-626e38e4813c357bd7161782286317ee42357313.tar.bz2 |
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')
-rw-r--r-- | include/llvm/System/TimeValue.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/System/TimeValue.h b/include/llvm/System/TimeValue.h index 93afca9..e8a8365 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 /// @{ |