I want to count views for a web page, while I am using G-WAN and C. I am not really so familiar with them. I am using Intel 64-bit processor. I have searched for the topic and still get no idea, can anyone help me? Thank you.
I want to count views for a web page, while I am using G-WAN and C
Fine, there are several options:
...and your code can use different ways depending on your needs (listed in order of speed and memory efficiency):
You can even use a mix of these and use a fast (in-memory) method that is periodically stored to disk.
It really depends on your needs (is the counter tracking one single page? is it fetched 10,000 times per second, 1 million times? etc.).