Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

time

time(differential=FALSE)


Description

Get the time, in nanoseconds, spent on processing after the last iteration.

Usage

DynComm.time(dyncomm,differential)

Arguments

dyncomm

A DynComm object, if not using the inline version of the function call

differential

Select between differential and accumulated time.

Details

If the differential parameter is set, the time taken by the last iteration will be returned. Otherwise, the default behaviour is to, return the accumulated time spent on processing since the creation of the DynComm object.

If post processing exists, the time returned by this function will include the processing time of all post processing algorithms up to the selected one.

Value

an unsigned integer with the total processing time

Author(s)

poltergeist0

See Also

Examples

library(DynComm)

Parameters<-matrix(c("e","0.1","w", "FALSE"),ncol=2, byrow=TRUE)
dc<-DynComm(ALGORITHM$LOUVAIN,CRITERION$MODULARITY,Parameters)
dc$addRemoveEdges(
 matrix(
   c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,12,13,1,1,1,2,2,2,18,12,19,20,2,3,11,12,4,9,5,9,22)
      ,ncol=2)
)

dc$time()

DynComm

Dynamic Network Communities Detection and Generation

v2020.1.6
GPL-2
Authors
Rui P. Sarmento [aut, cre] (<https://orcid.org/0000-0003-1891-5295>), Luís Lemos [aut], Mário Cordeiro [ctb], Giulio Rossetti [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.