Added type nanotime_t (an int64 storing a nanoseconds value) and function

system_time_nsecs(), returning the system time in nanoseconds. The function
is only really implemented for x86. For the other architectures
system_time() * 1000 is returned.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34543 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-12-07 21:43:19 +00:00
parent db905187d5
commit 34a48c70ef
13 changed files with 155 additions and 15 deletions
+2 -1
View File
@@ -367,7 +367,8 @@ extern bigtime_t real_time_clock_usecs(void);
extern status_t set_timezone(const char *timezone);
extern bigtime_t system_time(void);
/* time since booting in microseconds */
extern nanotime_t system_time_nsecs();
/* time since booting in nanoseconds */
/* Alarm */