IFEM  90A354
Functions | Variables
Profiler.C File Reference

Simple profiling of computational tasks. More...

#include "Profiler.h"
#include "IFEM.h"
#include "LinAlgInit.h"
#include <sys/time.h>
Include dependency graph for Profiler.C:

Functions

static double WallTime ()
 Returns the current wall time in seconds and resolution in microsec.
 
static int iThread ()
 Returns the current thread ID when in a parallel loop, -1 otherwise.
 
std::ostream & operator<< (std::ostream &os, const Profiler::Profile &p)
 Global stream operator printing a Profile instance.
 

Variables

static bool use_ms = false
 Print mean times in microseconds?
 

Detailed Description

Simple profiling of computational tasks.

Date
May 18 2010
Author
Knut Morten Okstad / SINTEF