How to get FileTime?
-
Using GetFileTime(),can get the last-modified time of a file.i need actually the elapsed time.how can i get?
-
Using GetFileTime(),can get the last-modified time of a file.i need actually the elapsed time.how can i get?
Monisankar wrote: i need actually the elapsed time Elapsed time? I can only assume you mean last_modified_time - create_time. Is that correct?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Monisankar wrote: i need actually the elapsed time Elapsed time? I can only assume you mean last_modified_time - create_time. Is that correct?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Actyally i need the intervals that have elapsed since 1601 and want to get this value as unsigned long.What should i do?
-
Actyally i need the intervals that have elapsed since 1601 and want to get this value as unsigned long.What should i do?
FILETIME ftCreate,
ftLocal;
GetFileTime(hFile, &ftCreate, ...);
FileTimeToLocalFileTime(&ftCreate, &ftLocal);FILETIME ftSystem;
SYSTEMTIME st;
GetSystemTime(&st);
SystemTimeToFileTime(&st, &ftSystem);Now you can compare
ftLocal
withftSystem
.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow