mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-04-20 16:49:38 +08:00
Update documentation of lapack second/dsecnd.
This commit is contained in:
parent
9079820241
commit
5a90fbceaa
@ -22,6 +22,9 @@ double dsecnd_();
|
||||
// Elapsed CPU Time in seconds.
|
||||
double dsecnd_() {
|
||||
#ifdef _WIN32
|
||||
// For MSVC, use `GetProcessTimes` for proper CPU time - MSVC uses
|
||||
// a non-standard `std::clock` implementation (see
|
||||
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/clock?view=msvc-170).
|
||||
// GetProcessTimes() uses 100-nanosecond time units.
|
||||
FILETIME creation_time, exit_time, kernel_time, user_time;
|
||||
GetProcessTimes(GetCurrentProcess(), &creation_time, &exit_time, &kernel_time, &user_time);
|
||||
|
@ -22,6 +22,9 @@ float second_();
|
||||
// Elapsed CPU Time in seconds.
|
||||
float second_() {
|
||||
#ifdef _WIN32
|
||||
// For MSVC, use `GetProcessTimes` for proper CPU time - MSVC uses
|
||||
// a non-standard `std::clock` implementation (see
|
||||
// https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/clock?view=msvc-170).
|
||||
// GetProcessTimes() uses 100-nanosecond time units.
|
||||
FILETIME creation_time, exit_time, kernel_time, user_time;
|
||||
GetProcessTimes(GetCurrentProcess(), &creation_time, &exit_time, &kernel_time, &user_time);
|
||||
|
Loading…
x
Reference in New Issue
Block a user