A.48 library(statistics): Get information about resource usage
AllApplicationManualNameSummaryHelp

  • Documentation
    • Reference manual
      • The SWI-Prolog library
        • library(statistics): Get information about resource usage
          • statistics/0
          • statistics/1
          • thread_statistics/2
          • time/1
          • call_time/2
          • call_time/3
          • profile/1
          • profile/2
          • show_profile/1
          • profile_data/1
          • profile_procedure_data/2
    • Packages
Availability::- use_module(library(statistics)).(can be autoloaded)
Sourcecall_time(:Goal, -Time:dict)
call_time(:Goal, -Time:dict, -Result)
Call Goal as call/1, unifying Time with a dict that provides information on the resource usage. Currently Time contains the keys below. Future versions may provide additional keys.

  • wall:Seconds
  • cpu:Seconds
  • inferences:Count
Result is one of true or false depending on whether or not the goal succeeded.