7 #define RZ_NSEC_PER_SEC 1000000000ULL
8 #define RZ_NSEC_PER_MSEC 1000000ULL
9 #define RZ_USEC_PER_SEC 1000000ULL
10 #define RZ_NSEC_PER_USEC 1000ULL
11 #define RZ_USEC_PER_MSEC 1000ULL
13 #define ASCTIME_BUF_MINLEN 26
38 #define rz_time_date_unix_to_string rz_time_stamp_to_str
47 #define RZ_TIME_PROFILE_ENABLED 0
49 #if RZ_TIME_PROFILE_ENABLED
50 #define RZ_TIME_PROFILE_BEGIN ut64 __now__ = rz_time_now_mono()
51 #define RZ_TIME_PROFILE_END eprintf("%s %" PFMT64d "\n", __FUNCTION__, rz_time_now_mono() - __now__)
53 #define RZ_TIME_PROFILE_BEGIN \
56 #define RZ_TIME_PROFILE_END \
static static fork const void static count static fd const char const char static newpath char char char static envp time
RZ_API RZ_OWN char * rz_time_date_dos_to_string(ut32 timestamp)
Converts a dos date (ut32) and returns the timestamp in string format.
RZ_API RZ_OWN char * rz_time_date_now_to_string(void)
Returns the timestamp in string format of the current time (now)
RZ_API struct tm * rz_localtime_r(RZ_NONNULL const time_t *time, RZ_NONNULL struct tm *res)
RZ_API struct tm * rz_gmtime_r(RZ_NONNULL const time_t *time, RZ_NONNULL struct tm *res)
RZ_API bool rz_time_stamp_is_dos_format(const ut32 certainPosixTimeStamp, const ut32 possiblePosixOrDosTimeStamp)
Verifies that the timestamp is in dos format.
RZ_API char * rz_asctime_r(RZ_NONNULL const struct tm *tm, RZ_NONNULL char *buf)
RZ_API RZ_OWN char * rz_time_date_w32_to_string(ut64 timestamp)
Converts a Win32 date (ut64) and returns the timestamp in string format.
RZ_API ut64 rz_time_now(void)
Returns the current time in microseconds.
RZ_API int rz_time_gettimeofday(struct timeval *p, struct timezone *tz)
Get the system current time and the current time zone.
RZ_API RZ_OWN char * rz_time_date_hfs_to_string(ut32 timestamp)
Converts a Mac HFS+ date (ut32) and returns the timestamp in string format.
RZ_API RZ_OWN char * rz_time_stamp_to_str(ut32 timestamp)
Converts an unix epoch timestamp to string.
RZ_API char * rz_ctime_r(RZ_NONNULL const time_t *timer, RZ_NONNULL char *buf)
RZ_API ut64 rz_time_now_mono(void)
Returns the current time in microseconds, using the monotonic clock.
RZ_API ut32 rz_time_dos_time_stamp_to_posix(ut32 timestamp)
Converts dos timestamp to posix timestamp.
ut64(WINAPI *w32_GetEnabledXStateFeatures)()