KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
rtc.h File Reference

Low-level real-time clock functionality. More...

#include <sys/cdefs.h>
#include <time.h>

Go to the source code of this file.

Functions

time_t rtc_unix_secs (void)
 Get the current date/time.
 
int rtc_set_unix_secs (time_t time)
 Set the current date/time.
 
time_t rtc_boot_time (void)
 Get the time since the system was booted.
 

Detailed Description

Low-level real-time clock functionality.

This file contains functions for interacting with the real-time clock in the Dreamcast. Generally, you should prefer interacting with the higher level standard C functions, like time(), rather than these when simply needing to fetch the current system time.

See also
arch/wdt.h
Author
Megan Potter
Falco Girgis