MeshLib C++ Docs
Loading...
Searching...
No Matches
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
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 MRMesh MRMesh
Definition MRMeshC/MRMeshFwd.h:47
double timespec_to_seconds(const struct timespec *ts)
MRMesh * createCube(void)
struct timespec timespec_get_duration(const struct timespec *before, const struct timespec *after)
struct timespec timespec_now(void)