qpSWIFT
A Sparse Quadratic Programming Solver
All Data Structures Files Functions Variables Typedefs Pages
timer.h File Reference
#include "GlobalOptions.h"
#include <time.h>
#include <sys/time.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  qp_timer
 

Typedefs

typedef struct qp_timer qp_timer
 

Functions

void tic (qp_timer *t)
 timer tic functions, similar to matlab tic, starts recording time from the instant the function is invoked More...
 
qp_real toc (qp_timer *t)
 timer toc functions, similar to matlab toc, returns the recorded time More...
 

Typedef Documentation

◆ qp_timer

typedef struct qp_timer qp_timer

Timer structure to store time information

Function Documentation

◆ tic()

void tic ( qp_timer t)

timer tic functions, similar to matlab tic, starts recording time from the instant the function is invoked

Parameters
[in]tqp_timer structure

For Windows machines

For Posix machines

◆ toc()

qp_real toc ( qp_timer t)

timer toc functions, similar to matlab toc, returns the recorded time

Parameters
[in]tqp_timer structure
[out]diffrecorded time