Turnstone Operating System
Loading...
Searching...
No Matches
time.64.c File Reference

Date and time library. More...

#include <time.h>
#include <memory.h>

Functions

 MODULE ("turnstone.lib")
 
time_t time (time_t *t)
 
time_t time_ns (time_t *t)
 gets current time in nanoseconds More...
 
boolean_t time_is_leap (int64_t year)
 
timeparsed_tparse_time (timeparsed_t *tp, time_t t)
 
timeparsed_ttime_to_timeparsed (time_t t)
 
timeparsed_ttimeparsed (timeparsed_t *tp)
 
time_t timeparsed_to_time (timeparsed_t *tp)
 
uint64_t rdtsc (void)
 

Variables

uint64_t TIME_EPOCH = 0
 
const int32_t time_days_of_month [] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
 

Detailed Description

Date and time library.

This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.

Function Documentation

◆ time_ns()

time_t time_ns ( time_t t)

gets current time in nanoseconds

Parameters
[out]tpointer to time_t
Returns
current time in nanoseconds