summaryrefslogtreecommitdiff
path: root/minix/lib/libsys/getticks.c
blob: af0b11dad3e0930d4527caf19893c11bba5d3dab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "sysutil.h"

/*
 * Return the number of clock ticks since system boot.  Note that the value may
 * wrap on overflow.
 */
clock_t
getticks(void)
{

	/* We assume atomic 32-bit field retrieval.  TODO: 64-bit support. */
	return get_minix_kerninfo()->kclockinfo->uptime;
}