mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-13 19:12:26 +00:00
logtest adjustments
This commit is contained in:
parent
42dffec4ae
commit
8b096e65af
@ -10392,9 +10392,20 @@ void command_logtest(Client *c, const Seperator *sep){
|
|||||||
clock_t t = std::clock(); /* Function timer start */
|
clock_t t = std::clock(); /* Function timer start */
|
||||||
if (sep->IsNumber(1)){
|
if (sep->IsNumber(1)){
|
||||||
uint32 i = 0;
|
uint32 i = 0;
|
||||||
|
std::ofstream log_test;
|
||||||
for (i = 0; i < atoi(sep->arg[1]); i++){
|
for (i = 0; i < atoi(sep->arg[1]); i++){
|
||||||
Log.Out(Logs::General, Logs::None, "[%u] Test... Took %f seconds", i, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
log_test.open("logs/log_test.txt", std::ios_base::app | std::ios_base::out);
|
||||||
|
log_test << "this is a test\n";
|
||||||
|
log_test.close();
|
||||||
}
|
}
|
||||||
|
Log.Out(Logs::General, Logs::Zone_Server, "[%u] Test #1... Took %f seconds", i, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
||||||
|
t = std::clock();
|
||||||
|
log_test.open("logs/log_test.txt", std::ios_base::app | std::ios_base::out);
|
||||||
|
for (i = 0; i < atoi(sep->arg[1]); i++){
|
||||||
|
log_test << "this is a test\n";
|
||||||
|
}
|
||||||
|
log_test.close();
|
||||||
|
Log.Out(Logs::General, Logs::Zone_Server, "[%u] Test #2... Took %f seconds", i, ((float)(std::clock() - t)) / CLOCKS_PER_SEC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user