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
7struct timespec timespec_now( void );
8
9// returns a timespec object holding a duration between two time values
10struct timespec timespec_get_duration( const struct timespec* before, const struct timespec* after );
11
12// converts a timespec object to a timestamp in seconds
13double timespec_to_seconds( const struct timespec* ts );
14
15// creates cube mesh with diagonal=1.0f
struct MR_Mesh MR_Mesh
double timespec_to_seconds(const struct timespec *ts)
struct timespec timespec_get_duration(const struct timespec *before, const struct timespec *after)
struct timespec timespec_now(void)
MR_Mesh * createCube(void)