mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Add struct timespec.
This commit is contained in:
parent
a6a8a75a0c
commit
bf2c624c9b
2 changed files with 44 additions and 0 deletions
|
@ -35,6 +35,10 @@ __BEGIN_DECLS
|
||||||
@include(time_t.h)
|
@include(time_t.h)
|
||||||
@include(NULL.h)
|
@include(NULL.h)
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
#include <sortix/timespec.h>
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
#define CLOCKS_PER_SEC 1000000
|
#define CLOCKS_PER_SEC 1000000
|
||||||
|
|
||||||
struct tm
|
struct tm
|
||||||
|
|
40
sortix/include/sortix/timespec.h
Normal file
40
sortix/include/sortix/timespec.h
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
/*******************************************************************************
|
||||||
|
|
||||||
|
Copyright(C) Jonas 'Sortie' Termansen 2012.
|
||||||
|
|
||||||
|
This file is part of Sortix.
|
||||||
|
|
||||||
|
Sortix is free software: you can redistribute it and/or modify it under the
|
||||||
|
terms of the GNU General Public License as published by the Free Software
|
||||||
|
Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
version.
|
||||||
|
|
||||||
|
Sortix is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License along with
|
||||||
|
Sortix. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
sortix/timespec.h
|
||||||
|
Declaration of the timespec structure.
|
||||||
|
|
||||||
|
*******************************************************************************/
|
||||||
|
|
||||||
|
#ifndef INCLUDE_SORTIX_TIMESPEC_H
|
||||||
|
#define INCLUDE_SORTIX_TIMESPEC_H
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
|
|
||||||
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
struct timespec
|
||||||
|
{
|
||||||
|
time_t tv_sec;
|
||||||
|
long tv_nsec;
|
||||||
|
};
|
||||||
|
|
||||||
|
__END_DECLS
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in a new issue