Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/clock.hfa

    rba068c0 r43db35e  
    1010// Created On       : Thu Apr 12 14:36:06 2018
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Sep  9 14:07:17 2023
    13 // Update Count     : 30
     12// Last Modified On : Sun Apr 18 08:12:16 2021
     13// Update Count     : 28
    1414//
    1515
     
    9191        // discontinuous jumps when the OS is not running the kernal thread. A duration is returned because the value is
    9292        // relative and cannot be converted to real-time (wall-clock) time.
    93         Duration processor_cpu() {                                                      // non-monotonic duration of kernel thread
     93        Duration processor() {                                                          // non-monotonic duration of kernel thread
    9494                timespec ts;
    9595                clock_gettime( CLOCK_THREAD_CPUTIME_ID, &ts );
    9696                return (Duration){ ts };
    97         } // processor_cpu
     97        } // processor
    9898
    9999        // Program CPU-time watch measures CPU time consumed by all processors (kernel threads) in the UNIX process.  This
    100100        // watch is affected by discontinuous jumps when the OS is not running the kernel threads. A duration is returned
    101101        // because the value is relative and cannot be converted to real-time (wall-clock) time.
    102         Duration program_cpu() {                                                        // non-monotonic duration of program CPU
     102        Duration program() {                                                            // non-monotonic duration of program CPU
    103103                timespec ts;
    104104                clock_gettime( CLOCK_PROCESS_CPUTIME_ID, &ts );
    105105                return (Duration){ ts };
    106         } // program_cpu
     106        } // program
    107107
    108108        // Monotonic duration from machine boot and including system suspension. This watch is unaffected by discontinuous
Note: See TracChangeset for help on using the changeset viewer.