repo.or.cz
/
cbaos.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Semi-decennial update. 50% code inflation.
[cbaos.git]
/
include
/
timekeeping.h
blob
722cf743a458aa864add48ebfb1bf788d73b96ce
1
#ifndef TIMEKEEPING_H_
2
#define TIMEKEEPING_H_
3
4
#include <types.h>
5
6
void
timekeeping
(
u32 now
);
7
u32
time_ms
(
void
);
8
9
/* limit: 49.7 days in seconds or ms */
10
static
inline
u32
time
(
void
)
11
{
12
return
time_ms
()/
1000
;
13
}
14
15
#endif