MeshLib C++ Docs
Loading...
Searching...
No Matches
MRTestC/TestFunctions.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <time.h>
4
#include <MRMeshC/MRMeshFwd.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
MRMesh*
createCube
(
void
);
timespec_to_seconds
double timespec_to_seconds(const struct timespec *ts)
createCube
MRMesh * createCube(void)
timespec_get_duration
struct timespec timespec_get_duration(const struct timespec *before, const struct timespec *after)
timespec_now
struct timespec timespec_now(void)
MeshLib
source
MRTestC
TestFunctions.h
Generated by
1.11.0