Advertisement
Guest User

Untitled

a guest
Oct 8th, 2014
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.59 KB | None | 0 0
  1. #include <a_samp>
  2. #include <timing>
  3.  
  4. #define COUNT 1000000
  5. #define Push(%0,%1) strdel(%0,0,strlen(%0)),strcat(%0,%1)
  6. main() {
  7.         new string[] = "Hallo mein name ist Kaliber!";
  8.  
  9.         RUN_TIMING("format", 1000000) {
  10.             format(string,sizeof string,"Hallo mein name ist Kaliber!");
  11.         }
  12.         RUN_TIMING("Push", 1000000) {
  13.             Push(string,"Hallo mein name ist Kaliber!");
  14.         }
  15.         RUN_TIMING("zuweisung", 1000000) {
  16.             string = "Hallo mein Name ist Kaliber!";
  17.         }
  18.         RUN_TIMING("strcat", 1000000) {
  19.             string[0] = '\0';
  20.             strcat(string,"Hallo mein Name ist Kaliber!",sizeof(string));
  21.         }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement