This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Timer { | |
| public static $time = array(); | |
| public static $last; | |
| public static function start($name = NULL) { | |
| static $i = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| std::vector<std::string> explode(std::string str, char delim = ' ') { | |
| std::vector<std::string> result; | |
| std::stringstream stream(str); | |
| std::string buffer = ""; | |
| while (std::getline(stream, buffer, delim)) { | |
| result.push_back(buffer); | |
| } | |
| return result; | |
| } |
NewerOlder