MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTestC2/TestFunctions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <time.h>
4
#include <
MRCMesh/MRMesh.h
>
5
6
// returns a timespec object holding the current time
7
struct
timespec
timespec_now
( void );
8
9
// returns a timespec object holding a duration between two time values
10
struct
timespec
timespec_get_duration
( const struct timespec* before,
const
struct
timespec* after );
11
12
// converts a timespec object to a timestamp in seconds
13
double
timespec_to_seconds
(
const
struct
timespec* ts );
14
15
// creates cube mesh with diagonal=1.0f
16
MR_Mesh
*
createCube
(
void
);
MR_Mesh
struct MR_Mesh MR_Mesh
MRMesh.h
timespec_to_seconds
double timespec_to_seconds(const struct timespec *ts)
timespec_get_duration
struct timespec timespec_get_duration(const struct timespec *before, const struct timespec *after)
timespec_now
struct timespec timespec_now(void)
createCube
MR_Mesh * createCube(void)
MeshLib
source
MRTestC2
TestFunctions.h
Generated by
1.11.0