:orphan: # PetscTimeAdd Adds the current time (in seconds) to the value `v`. ## Synopsis ``` #include PetscErrorCode PetscTimeAdd(PetscLogDouble *v) ``` Not Collective ## Input Parameter - ***v -*** time counter ## Output Parameter - ***v -*** time counter (`v` = `v` + current time) ## Notes Since the PETSc libraries incorporate timing of phases and operations, we do not ever recommend using `PetscTimeAdd()`. The options database command `-log_view` activates PETSc library timing. ## See Also `PetscTime()`, `PetscTimeSubtract()`, `PetscLogStageRegister()`, `PetscLogEventRegister()`, `PetscLogEventBegin()`, `PetscLogEventEnd()` ## Level developer ## Location include/petsctime.h --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petsctime.h) [Index of all Sys routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)