added qse_getmtime() and qse_mtime_t to represent time in milliseconds

This commit is contained in:
2019-03-12 08:22:36 +00:00
parent c5c9c47e86
commit d41f8e75e0
2 changed files with 18 additions and 0 deletions

View File

@ -190,6 +190,14 @@ int qse_gettime (qse_ntime_t* t)
#endif
}
int qse_getmtime (qse_mtime_t* mt)
{
qse_ntime_t nt;
if (qse_gettime(&nt) <= -1) return -1;
*mt = QSE_SECNSEC_TO_MSEC(nt.sec, nt.nsec);
return 0;
}
int qse_settime (const qse_ntime_t* t)
{
#if defined(_WIN32)