Prefix usage reason with "UsageError: "
#include <signal.h>
#include <iostream>
#include "../time/units.h"
+#include "../time/utils.h"
#include "application.h"
#include "error.h"
void Application::usage(const char *reason, const char *, bool)
{
if(reason)
- cerr<<reason<<'\n';
+ cerr<<"UsageError: "<<reason<<'\n';
cerr<<"The programmer was lazy and didn't write a usage() function for this application.\n";
}
else if(loop_mode_==TICK_SLEEP)
{
tick();
- sleep(Time::msec);
+ Time::sleep(Time::msec);
}
else if(loop_mode_==TICK_YIELD)
{