Tissue Forge C++
0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tf_cycle.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* This file is part of mdcore.
3
* Coypright (c) 2010 Pedro Gonnet (pedro.gonnet@durham.ac.uk)
4
* Coypright (c) 2017 Andy Somogyi (somogyie at indiana dot edu)
5
* Copyright (c) 2022-2024 T.J. Sego
6
*
7
* This program is free software: you can redistribute it and/or modify
8
* it under the terms of the GNU Lesser General Public License as published
9
* by the Free Software Foundation, either version 3 of the License, or
10
* (at your option) any later version.
11
*
12
* This program is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
* GNU General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public License
18
* along with this program. If not, see <http://www.gnu.org/licenses/>.
19
*
20
******************************************************************************/
21
27
#ifndef _MDCORE_INCLUDE_TF_CYCLE_H_
28
#define _MDCORE_INCLUDE_TF_CYCLE_H_
29
30
#if defined(TF_APPLE) && defined(__arm64__) && !defined(HAVE_TICK_COUNTER)
31
typedef
unsigned
long
long
ticks;
32
#define getticks() clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW)
33
#define HAVE_TICK_COUNTER
34
#endif
35
36
#include "cycle.h"
37
38
#endif
source
mdcore
include
tf_cycle.h
Generated by
1.10.0