I hereby claim:
- I am lizhongz on github.
- I am lizhong (https://keybase.io/lizhong) on keybase.
- I have a public key ASCIyHJRMpspVakexuSO8DEN3TRumkgtET4KKi_qDsuWFwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| def exec_time(func): | |
| def inner(*args, **kwargs): | |
| import time | |
| st = time.time() | |
| ret = func(*args, **kwargs) | |
| et = time.time() - st | |
| print "execution time %s seconds" %(et) | |
| return ret | |
| return inner |
| #include <functional> | |
| #include <chrono> | |
| #include <iostream> | |
| template <class> struct ExeTime; | |
| // Execution time decorator | |
| template <class R, class... Args> | |
| struct ExeTime<R(Args ...)> { | |
| public: |
| /* Calculate finger tables of nodes in Chord Protocol */ | |
| package main | |
| import "fmt" | |
| import "math" | |
| /* | |
| cacl_finger_table calculates the finger table of a node in | |
| Chord procotol. | |
| Parameters |
| /* | |
| This code is written for learning Cassandra's key-value storage, | |
| where Bloom Filter is used to check the existence of a key in a replica. | |
| */ | |
| package main | |
| import "fmt" | |
| import "math" | |
| /* |