#ifdef _WIN32 #include #endif #include #include #include #include "UpdateTask.h" #include "Preferences.h" using namespace std; #ifdef _WIN32 int CALLBACK WinMain(_In_ HINSTANCE, _In_ HINSTANCE, _In_ LPSTR, _In_ int) #else int main(int argc, char *argv[]) #endif { time_t currentTime = time(NULL); cout << "Process started at " << ctime(¤tTime); srand(unsigned(currentTime)); UpdateTask updater; updater.checkForUpdates(); currentTime = time(NULL); cout << "Process finished at " << ctime(¤tTime); return 0; }