flat assembler
Message board for the users of flat assembler.
Index
> Windows > Time Freezer |
Author |
|
Borsuc 18 Jun 2009, 21:57
Yesterday I was bothered by the fact that timestamps may change when you simply copy/add directories/files to an archive or to disk. I am perfectionist (nevermind that I don't care about people "discovering" how fast my computer can copy/archive files).
So I made a stupid app that will reset the system time to a given date every [Delay] milliseconds, where [Delay] is optional (you can enter it), by default is 200. I have no idea if there is such app out there but I doubt it's only 1KB large in Windows (anyway just an excuse for me to make a really small, and somewhat useful, app with the Manual PE method ) it was written somewhat in a rush so don't expect it to be very clean or otherwise perfect code (if you care about the source). It also processes the command line arguments manually, could be useful as a template for apps like this cheerrs, hope you find some use to it. here's the readme: Quote: Time Freezer is a very small and stupid application that will reset your system time to a given data every given milliseconds. This is somewhat akin to freezing it although the milliseconds delay will be there.
_________________ Previously known as The_Grey_Beast |
|||||||||||
18 Jun 2009, 21:57 |
|
Borsuc 21 Jun 2009, 00:11
Yes I know it can mess stuff up, but for copying seems to work.
Setting filetime can also be a good way, but there are two things of note. First of it isn't "realtime" (or it would be very slow). Either way, this is not changing the "tick" count or the actual clock -- just the date, which is based on that clock. I haven't encountered any problems so far with it. (unless a program explicitly uses the date to do time offsets, but that is wrong design, it should use GetTickCount or something like that instead). _________________ Previously known as The_Grey_Beast |
|||
21 Jun 2009, 00:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.