libtransistor
A userland library for the Nintendo Switch
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
time.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 #include<libtransistor/types.h>
13 
14 typedef struct system_clock_t system_clock_t;
15 
16 extern system_clock_t *time_system_clock_user;
17 extern system_clock_t *time_system_clock_network;
18 extern system_clock_t *time_system_clock_local;
19 
24 
28 result_t time_system_clock_get_current_time(system_clock_t *system_clock, uint64_t *time);
29 
33 result_t time_system_clock_set_current_time(system_clock_t *system_clock, uint64_t time);
34 
38 void time_finalize();
39 
40 #ifdef __cplusplus
41 }
42 #endif
result_t time_system_clock_get_current_time(system_clock_t *system_clock, uint64_t *time)
Get the current system time from one of the system clocks.
result_t time_system_clock_set_current_time(system_clock_t *system_clock, uint64_t time)
Set the current system time for one of the system clocks.
Various system types.
void time_finalize()
Finalize Time service.
uint32_t result_t
Function result.
Definition: types.h:51
result_t time_init()
Initialize Time service.