version 1.29, 2002/08/21 20:25:46
|
version 1.30, 2002/08/22 20:08:33
|
|
|
// Convert all values to seconds and compute the start and finish | // Convert all values to seconds and compute the start and finish |
// intervals in seconds. | // intervals in seconds. |
startIntervalInMicroseconds = | startIntervalInMicroseconds = |
#if defined(PEGASUS_PLATFORM_LINUX_IX86_GNU) || defined(PEGASUS_PLATFORM_AIX_RS_IBMCXX) |
(startIntervalDays*PEGASUS_UINT64_LITERAL(86400000000)) + |
(Uint64)((startIntervalDays*86400000000ULL) + |
(startIntervalHours*PEGASUS_UINT64_LITERAL(3600000000)) + |
(startIntervalHours*3600000000ULL) + |
|
#else |
|
(Uint64)((startIntervalDays*86400000000) + |
|
(startIntervalHours*3600000000) + |
|
#endif |
|
(startIntervalMinutes*60000000) + | (startIntervalMinutes*60000000) + |
(startIntervalSeconds*1000000) + | (startIntervalSeconds*1000000) + |
startIntervalMicroseconds); |
startIntervalMicroseconds; |
| |
finishIntervalInMicroseconds = | finishIntervalInMicroseconds = |
#if defined(PEGASUS_PLATFORM_LINUX_IX86_GNU) || defined(PEGASUS_PLATFORM_AIX_RS_IBMCXX) |
(finishIntervalDays*PEGASUS_UINT64_LITERAL(86400000000)) + |
(Uint64)((finishIntervalDays*86400000000ULL) + |
(finishIntervalHours*PEGASUS_UINT64_LITERAL(3600000000)) + |
(finishIntervalHours*3600000000ULL) + |
|
#else |
|
(Uint64)((finishIntervalDays*86400000000) + |
|
(finishIntervalHours*3600000000) + |
|
#endif |
|
(finishIntervalMinutes*60000000) + | (finishIntervalMinutes*60000000) + |
(finishIntervalSeconds*1000000) + | (finishIntervalSeconds*1000000) + |
finishIntervalMicroseconds); |
finishIntervalMicroseconds; |
| |
// Get the difference. | // Get the difference. |
intervalDifferenceInMicroseconds = | intervalDifferenceInMicroseconds = |