Add system_time bin command which just prints system_time().

This can be used by scripts to do verious performance measurements.
Specifically it can be used to measure the boot time since it represents
the uptime.
This commit is contained in:
Michael Lotz
2015-08-29 19:15:47 +02:00
parent 48b2cb3771
commit b11eb89c2d
2 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ SYSTEM_BIN = [ FFilterByBuildFeatures
route
safemode screen_blanker screeninfo screenmode setarch setmime settype
setversion setvolume shutdown
strace su sysinfo
strace su sysinfo system_time
tcptester telnet telnetd top
traceroute trash
unchop unmount
+19
View File
@@ -0,0 +1,19 @@
/*
* Copyright 2015 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Michael Lotz, [email protected]
*/
#include <OS.h>
#include <stdio.h>
int
main(int argc, char* argv[])
{
printf("%" B_PRIdBIGTIME "\n", system_time());
return 0;
}