petsc-3.4.5 2014-06-29
PetscTime
Returns the current time of day in seconds.
Synopsis
#include "petsctime.h"
PetscTime(PetscLogDouble *v)
Not Collective
Output Parameter
v -time counter
Usage
PetscLogDouble v;
PetscTime(&v);
.... perform some calculation ...
printf("Time for operation %g\n",v);
Notes
Since the PETSc libraries incorporate timing of phases and operations,
we do not recomment every using PetscTime()
The options database command -log_summary activate
PETSc library timing. See the <A href="../../docs/manual.pdf">Users Manual</A> for more details.
See Also
PetscTimeSubtract(), PetscTimeAdd(), PetscLogStageRegister(), PetscLogEventRegister(), PetscLogEventBegin(), PetscLogEventEnd()
Keywords
Petsc, time
Level:developer
Location:src/sys/time/../../../include/petsctime.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/sys/threadcomm/examples/tutorials/ex5.c.html
src/ksp/ksp/examples/tutorials/ex10.c.html
src/ksp/ksp/examples/tutorials/ex42.c.html