// clitk include
#include "clitkCommon.h"
#include "clitkMemoryUsage.h"
-#include <unistd.h>
+#ifndef _WIN32
+# include <unistd.h>
+#endif
void clitk::PrintMemory(bool verbose, std::string s)
{
// Search the current pid in the list of processes
while (stat[i].pid != getpid()) i++;
// Display total memory size
- double mem = stat[i].proc_resident/1024/1024; // in Mb
+ double mem = stat[i].proc_resident/1000/1000; // in MB
return mem;
#else
return 0.0;