I am not an OS X developer, so I cannot give you details. But I know Windows and I can guess how this can be implemented - you can convert some of these methods.
To illustrate, suppose most programs that want to follow the abstract flow of time on Windows use GetTickCount . This returns the number of milliseconds since the system started. (There are other APIs that can use the application, but the technique remains the same.)
To change the time that appears for an application, you must change the values โโreturned from this time function. (for example, multiplied by a coefficient), so we create a wrapper function to apply the transformation:
DWORD GetTimeWarpTickCount() { static double factor = 2.0; return (DWORD)(GetTickCount()*factor);
After you have encoded the function, use hooking to replace the original Win32 function with your own. A connection can be made based on each application, so you can localize time changes for specific applications.
So, in short, if there is a way to override the basic time functions provided by OS X applications, then you can apply the same procedure.
mdma source share