mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
timew: Added debug timing data
This commit is contained in:
parent
f9568d1ca7
commit
98899acc4d
1 changed files with 6 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
|||
#include <Database.h>
|
||||
#include <Rules.h>
|
||||
#include <Extensions.h>
|
||||
#include <Timer.h>
|
||||
#include <shared.h>
|
||||
#include <commands.h>
|
||||
#include <timew.h>
|
||||
|
@ -38,6 +39,8 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
int main (int argc, const char** argv)
|
||||
{
|
||||
Timer run_time ("timew");
|
||||
|
||||
// Lightweight version checking that doesn't require initialization or I/O.
|
||||
int status = 0;
|
||||
if (lightweightVersionCheck (argc, argv))
|
||||
|
@ -103,6 +106,9 @@ int main (int argc, const char** argv)
|
|||
status = -2;
|
||||
}
|
||||
|
||||
run_time.stop ();
|
||||
debug (run_time.str ());
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue