version 1.2, 2001/04/11 19:53:22
|
version 1.6, 2001/06/03 17:05:03
|
|
|
//BEGIN_LICENSE |
//%///////////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM | // Copyright (c) 2000 The Open Group, BMC Software, Tivoli Systems, IBM |
// | // |
|
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
// DEALINGS IN THE SOFTWARE. | // DEALINGS IN THE SOFTWARE. |
// | // |
//END_LICENSE |
//============================================================================== |
//BEGIN_HISTORY |
|
// | // |
// Author: Michael E. Brasher |
// Author: Mike Brasher (mbrasher@bmc.com) |
// | // |
// $Log$ |
// Modified By: |
// Revision 1.2 2001/04/11 19:53:22 mike |
|
// More porting |
|
// | // |
// Revision 1.1 2001/04/11 00:23:44 mike |
//%///////////////////////////////////////////////////////////////////////////// |
// new files |
|
// |
|
// |
|
//END_HISTORY |
|
| |
#include "System.h" | #include "System.h" |
| |
|
|
| |
#include <windows.h> | #include <windows.h> |
#include <sys/types.h> | #include <sys/types.h> |
|
#include <time.h> |
#include <sys/timeb.h> | #include <sys/timeb.h> |
#include <io.h> | #include <io.h> |
#include <direct.h> | #include <direct.h> |
|
|
milliseconds = long((largeInt.QuadPart % (10000 * 1000)) / 10); | milliseconds = long((largeInt.QuadPart % (10000 * 1000)) / 10); |
} | } |
| |
|
String System::getCurrentASCIITime() |
|
{ |
|
char tmpbuf[128]; |
|
_strtime( tmpbuf ); |
|
String time = tmpbuf; |
|
_strdate( tmpbuf ); |
|
time.append("-"); |
|
time.append(tmpbuf); |
|
return time; |
|
} |
|
|
void System::sleep(Uint32 seconds) | void System::sleep(Uint32 seconds) |
{ | { |
Sleep(seconds * 1000); | Sleep(seconds * 1000); |
|
|
return rename(oldPath, newPath) == 0; | return rename(oldPath, newPath) == 0; |
} | } |
| |
|
DynamicLibraryHandle System::loadDynamicLibrary(const char* fileName) |
|
{ |
|
return DynamicLibraryHandle(LoadLibrary(fileName)); |
|
} |
|
|
|
DynamicSymbolHandle System::loadDynamicSymbol( |
|
DynamicLibraryHandle libraryHandle, |
|
const char* symbolName) |
|
{ |
|
return DynamicSymbolHandle(GetProcAddress( |
|
(HINSTANCE)libraryHandle, symbolName)); |
|
} |
|
|
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |