mirror of https://github.com/AxioDL/logvisor.git
Windows build fix
This commit is contained in:
parent
db415516f6
commit
df3a949d61
|
@ -73,7 +73,7 @@ static std::chrono::steady_clock::time_point GlobalStart = MonoClock.now();
|
||||||
static inline std::chrono::steady_clock::duration CurrentUptime()
|
static inline std::chrono::steady_clock::duration CurrentUptime()
|
||||||
{return MonoClock.now() - GlobalStart;}
|
{return MonoClock.now() - GlobalStart;}
|
||||||
std::atomic_uint_fast64_t FrameIndex(0);
|
std::atomic_uint_fast64_t FrameIndex(0);
|
||||||
|
|
||||||
static inline int ConsoleWidth()
|
static inline int ConsoleWidth()
|
||||||
{
|
{
|
||||||
int retval = 80;
|
int retval = 80;
|
||||||
|
@ -129,7 +129,7 @@ struct ConsoleLogger : public ILogger
|
||||||
for (int w=0 ; w<width ; ++w)
|
for (int w=0 ; w<width ; ++w)
|
||||||
fprintf(stderr, " ");
|
fprintf(stderr, " ");
|
||||||
fprintf(stderr, "\r");
|
fprintf(stderr, "\r");
|
||||||
|
|
||||||
std::chrono::steady_clock::duration tm = CurrentUptime();
|
std::chrono::steady_clock::duration tm = CurrentUptime();
|
||||||
double tmd = tm.count() *
|
double tmd = tm.count() *
|
||||||
std::chrono::steady_clock::duration::period::num /
|
std::chrono::steady_clock::duration::period::num /
|
||||||
|
@ -194,7 +194,7 @@ struct ConsoleLogger : public ILogger
|
||||||
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
|
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
|
||||||
fprintf(stderr, "ERROR");
|
fprintf(stderr, "ERROR");
|
||||||
break;
|
break;
|
||||||
case FatalError:
|
case Fatal:
|
||||||
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
|
SetConsoleTextAttribute(Term, FOREGROUND_INTENSITY | FOREGROUND_RED);
|
||||||
fprintf(stderr, "FATAL ERROR");
|
fprintf(stderr, "FATAL ERROR");
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue