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.
20 lines
291 B
C++
20 lines
291 B
C++
/*
|
|
* 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;
|
|
}
|