extracted clock_gettime in order to support MACH architecture
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* Copyright (C) John Baier 2015 <ebusd@ebusd.eu>
|
||||
*
|
||||
* This file is part of ebusd.
|
||||
*
|
||||
* ebusd 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.
|
||||
*
|
||||
* ebusd 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 ebusd. If not, see http://www.gnu.org/licenses/.
|
||||
*/
|
||||
|
||||
#ifndef LIBUTILS_CLOCK_H_
|
||||
#define LIBUTILS_CLOCK_H_
|
||||
|
||||
#include <time.h>
|
||||
|
||||
/** \file clock.h */
|
||||
|
||||
/**
|
||||
* Get the real time system clock.
|
||||
* @param t the @a timespec in which to store the time.
|
||||
*/
|
||||
void clockGettime(struct timespec* t);
|
||||
|
||||
#endif // LIBUTILS_CLOCK_H_
|
||||
Reference in New Issue
Block a user