| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Program Files (x86)/Windows Kits/10/Source/10.0.19041.0/ucrt/time/ |
Upload File : |
//
// difftime.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// The difftime() family of functions, which compute the difference between time
// values.
//
#include <corecrt_internal_time.h>
// Computes the difference between two times (b - a). Returns a double with the
// difference in seconds between the two times. Returns zero if the input is
// invalid.
template <typename TimeType>
static double __cdecl common_difftime(TimeType const b, TimeType const a) throw()
{
_VALIDATE_RETURN_NOEXC(a >= 0 && b >= 0, EINVAL, 0);
return static_cast<double>(b - a);
}
extern "C" double __cdecl _difftime32(__time32_t const b, __time32_t const a)
{
return common_difftime(b, a);
}
extern "C" double __cdecl _difftime64(__time64_t const b, __time64_t const a)
{
return common_difftime(b, a);
}