Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

counter_get(3) [php man page]

COUNTER_GET(3)															    COUNTER_GET(3)

counter_get - Get the current value of the basic counter.

SYNOPSIS
integer counter_get (void ) DESCRIPTION
counter_get(3) returns the current value of the basic interface's counter. RETURN VALUES
counter_get(3) returns an integer. SEE ALSO
counter_bump(3), counter_reset(3). PHP Documentation Group COUNTER_GET(3)

Check Out this Related Man Page

MouseX::NativeTraits::Counter(3pm)			User Contributed Perl Documentation			MouseX::NativeTraits::Counter(3pm)

NAME
MouseX::NativeTraits::Counter - Helper trait for counter attributes SYNOPSIS
package MyHomePage; use Mouse; has 'counter' => ( traits => ['Counter'], is => 'ro', isa => 'Num', default => 0, handles => { inc_counter => 'inc', dec_counter => 'dec', reset_counter => 'reset', }, ); my $page = MyHomePage->new(); $page->inc_counter; # same as $page->counter( $page->counter + 1 ); $page->dec_counter; # same as $page->counter( $page->counter - 1 ); DESCRIPTION
This module provides a simple counter attribute, which can be incremented and decremented. If your attribute definition does not include any of is, isa, default or handles but does use the "Counter" trait, then this module applies defaults as in the "SYNOPSIS" above. This allows for a very basic counter definition: has 'foo' => (traits => ['Counter']); $obj->inc_foo; PROVIDED METHODS
These methods are implemented in MouseX::NativeTraits::MethodProvider::Counter. It is important to note that all those methods do in place modification of the value stored in the attribute. set($value) Set the counter to the specified value. inc Increments the value stored in this slot by 1. Providing an argument will cause the counter to be increased by specified amount. dec Decrements the value stored in this slot by 1. Providing an argument will cause the counter to be increased by specified amount. reset Resets the value stored in this slot to it's default value. METHODS
meta method_provider_class helper_type SEE ALSO
MouseX::NativeTraits perl v5.14.2 2011-12-04 MouseX::NativeTraits::Counter(3pm)
Man Page

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

calculate the average of time series data using AWK

Hi, I have two time series data (below) merged into a file. t1 and t2 are in unit of second I want to calculate the average of V1 every second and count how many times "1" in V2 is occur within a second Input File: t1 V1 t2 V2 10.000000... (5 Replies)
Discussion started by: nica
5 Replies

2. Programming

pthread question : global variable not updated

Hi, I wrote the following program to understand mutexes. If I run the program , number of threads is shown as zero, even after creating one thread. When running with gdb, it works fine. The function process is used to update global variable (used to keep track of threads). It looks like the... (2 Replies)
Discussion started by: sanjayc
2 Replies

3. Red Hat

Using "ps" command to find high processes

Sometimes idle process(%98) and load average(98.32) are very high. When its happen I check with "top" command and I kill visible process. After killing machine status already same. How can I check high process using ps command. I want to find that which processes are using more than %50 CPU or... (5 Replies)
Discussion started by: getrue
5 Replies

4. Shell Programming and Scripting

Find the nth value in a list

Hello, I have some code that searches file names, sorts them on a field in the name, and returns the top value. # list the contents, strip off the path, and sort on field 3 as a number, returns top value TOP_OUTCOME=$(ls './'$SET_F'/'$FOLD'/'$FOLD'_anneal/'$C_PARAMS'/'$A_SET'/'*'out.txt' |... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

5. Programming

Code review: recursion in circular array, reduce two functions to one?

Hello, I think there's an easier way to do this but can't seem to recall but given an array of animals and an initial value is a random index in the array, here it's 3. 3,4,5,4,3,2,1,0,1,2,3,4,5,4,3,2,1,0... inifinite repeat a quick brute force solution i came up with was two functions, i... (6 Replies)
Discussion started by: f77hack
6 Replies