mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
|
Go to the source code of this file.
Functions | |
SCENARIO ("getting the current time in seconds", "[timeutils]") | |
SCENARIO ("putting a thread to sleep", "[timeutils]") | |
SCENARIO ("adding time to a timespec", "[timeutils]") | |
SCENARIO ("parsing a formatted time string", "[timeutils]") | |
SCENARIO ("calculating MJD from a Gregorian date", "[timeutils]") | |
SCENARIO ("parsing an ISO 8601 time string", "[timeutils]") | |
SCENARIO ("coverting an ISO 8601 time string to MJD", "[timeutils]") | |
SCENARIO | ( | "adding time to a timespec" | , |
"" | [timeutils] | ||
) |
Verify operation of timespecAddNsec.
Definition at line 93 of file timeUtils_test.cpp.
References mx::sys::timespecAddNsec().
SCENARIO | ( | "calculating MJD from a Gregorian date" | , |
"" | [timeutils] | ||
) |
Verify calculation of MJD.
Definition at line 263 of file timeUtils_test.cpp.
References mx::sys::Cal2mjd().
SCENARIO | ( | "coverting an ISO 8601 time string to MJD" | , |
"" | [timeutils] | ||
) |
Verify conversion of an ISO 8601 time string to MJD.
Definition at line 347 of file timeUtils_test.cpp.
References mx::sys::ISO8601date2mjd().
SCENARIO | ( | "getting the current time in seconds" | , |
"" | [timeutils] | ||
) |
Verify operation of get_curr_time. This only checks for increasing time on subsequent calls.
Definition at line 13 of file timeUtils_test.cpp.
References mx::sys::get_curr_time().
SCENARIO | ( | "parsing a formatted time string" | , |
"" | [timeutils] | ||
) |
Verify parsing of a formatted time string. Tests parsing of a string of format hh:mm:ss.s
Definition at line 197 of file timeUtils_test.cpp.
References mx::sys::parse_hms().
SCENARIO | ( | "parsing an ISO 8601 time string" | , |
"" | [timeutils] | ||
) |
Verify parsing of an ISO 8601 time string.
Definition at line 288 of file timeUtils_test.cpp.
References mx::astro::constants::day(), and mx::sys::ISO8601dateBreakdown().
SCENARIO | ( | "putting a thread to sleep" | , |
"" | [timeutils] | ||
) |
Verify operation of thread sleep functions.
Uses mx::sys::get_curr_time to verify duration of sleep.
Definition at line 48 of file timeUtils_test.cpp.
References mx::sys::get_curr_time(), mx::sys::microSleep(), mx::sys::milliSleep(), mx::sys::nanoSleep(), and mx::sys::sleep().