ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/utils/ProgressBar.cpp
(Generate patch)

Comparing branches/development/src/utils/ProgressBar.cpp (file contents):
Revision 1767 by gezelter, Fri Jul 6 22:01:58 2012 UTC vs.
Revision 1794 by gezelter, Thu Sep 6 19:44:06 2012 UTC

# Line 134 | Line 134 | namespace OpenMD {
134            struct tm * ender = localtime(&end_);
135            char buffer[22];
136            strftime(buffer, 22, "%a %b %d @ %I:%M %p", ender);
137 <          
137 >
138 > #ifdef _MSC_VER
139 >          csbi.dwCursorPosition.X = 0;
140 >          SetConsoleCursorPosition(hConsole, csbi.dwCursorPosition);
141 > #else          
142            cout << '\r';
143 + #endif
144            cout.width(3);
145            cout << right << int(percent);
146            cout.width(3);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines